On Saturday, August 27, 2016 at 2:00:23 PM UTC-7, saad khalid wrote:
>
> ...
> macaulay2.eval("""
> K = toField(QQ[zet]/(zet^8 - zet^6 + zet^4 - zet^2 + 1))
> A=matrix{{zet^1,0,0},{0,zet^2,0},{0,0,zet^3}}
> needsPackage "InvariantRing"
> G=generateGroup({A},K)
> P = molienSeries G
>  """)
>
> ...
> This is using my editted version of to_sage(), which converts P to a 
> string:
> sage: timeit('macaulay2("P").to_sage()')
> 125 loops, best of 3: 4.12 ms per loop
>
> This is using M2's internal string conversion:
> timeit('macaulay2.eval("toString molienSeries G")')
> 5 loops, best of 3: 3.97 s per loop
>
> Don't you want to compare the first to 

timeit('macaulay2.eval("toString P")')

It would look to me that you're asking the "eval" to do a bit more than 
you're asking "to_sage". If macaulay isn't caching the result of 
molienSeries, you may end up recomputing it every time.
 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to