On Fri, Jan 13, 2023 at 3:01 PM Emmanuel Charpentier <[email protected]> wrote: > > In Google Groups, I can’t see the screenshot nor the notebook, but this is a > FAQ, so I risk an answer : > > solve, used without algorithm= uses Maxima’s solver. The latter may introduce > new variables to denote unknown, arbitrary, quantities : “zxxx” denote > integer arbitrary constants, “rxxx” denoting real or complex arbitrary > constants. But… > > … the Sage interface to Maxima doesn’t catch them and does not define them in > Sage. You have to catch them and declare them yourself. A quick and crude way > to catch undefined variables in an expression E is [u for u in E.variables() > if str(u) not in globals()] ; declaring them may use var(str(u)).
yes, that's what I was going to say, too, after trying to run this notebook. And indeed, "z1649" ( a different run might produce a differently named "z..." variable) is a variable representing an arbitrary integer. If you want to pick a particular value of it, say, 42, it can be done as follows: sol[0][t02](z1649=42) (and you should get 85/2*pi) HTH Dima > > HTH, > > Le jeudi 12 janvier 2023 à 21:40:48 UTC+1, [email protected] a écrit : >> >> My mistake, here is the screenshot >> >> On Thursday, January 12, 2023 at 8:14:20 PM UTC [email protected] wrote: >>> >>> On Thu, Jan 12, 2023 at 8:00 PM 'Charles Bradshaw' via sage-support >>> <[email protected]> wrote: >>> > >>> > In the attached screenshot line 'out [113]' and 'out [98]' please observe >>> > 2*pi*z5484 >>> > the attempt to evaluate: line [114] produces the error x5484 is not >>> > defined >>> >>> there is no attachment. >>> >>> >>> > >>> > is this a bug or did I not understand something? >>> > >>> > I am running Fedora 37 with the dnf installed >>> > SageMath version 9.6, Release Date: 2022-05-15 >>> > Using Python 3.11.1. >>> > >>> > Thanks >>> > >>> > -- >>> > 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 view this discussion on the web visit >>> > https://groups.google.com/d/msgid/sage-support/e870bef7-68db-49a5-b45a-5508c039caf3n%40googlegroups.com. > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/283777a5-40f2-4b95-ad85-f28ad3315d21n%40googlegroups.com. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAAWYfq2Zw4nO0iv5eV4_X2njN7qgLqLb0dyLrC-oWKcS1RjU2w%40mail.gmail.com.
