On 11/4/20 12:05 AM, Kurt Pagani wrote:
> Strange, indeed. The CATs seem to be ok.
> When taking minrootpol and CX out of the body of f2, the it works.

OK, good to know, but I don't think it will help me since in fact, I
want to get minrootpol from

  cyclotomic(n)$CyclotomicPolynomialPackage

and the n is computed from some other data at runtime.
So moving it out of the function is not of big help, since I want to
create this SimpleAlgebraicExtension at runtime.

FriCAS should be able to do this.

Ralf

> )abbrev package BAR Bar
> Bar(C: IntegralDomain): with
>     f1: () -> Void
>     f2: () -> Void
>   == add
> 
>     minrootpol: SUP C := monomial(1,2)$SUP(C) + 1
>     CX:=SimpleAlgebraicExtension(C, SUP C, minrootpol)
> 
>     f1(): Void ==
>       px1 := px()$Foo(C, L1 C)
>       dbgPrint("px1", px1)
> 
>     f2(): Void ==
>       px2 := px()$Foo(CX, L1 CX)
>       dbgPrint("px2", px2)

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/30d5c5b4-7d95-807e-fbf2-c0f726bdae1b%40hemmecke.de.

Reply via email to