Does anyone use the GINAC? Can you tell me how to init an ex object with a string, or convert a string to ex?
Does anyone use the GINAC? Can you tell me how to init an ex
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have a string that contains the correct expression syntax, you can use the constructor documented here to turn it into an
exobject.You need to supply a second argument, which must be a list (in the sense of a
lstobject) of symbols. This list must contain the user-defined symbols you use in the expression. If you don’t use any user-defined symbols, use an empty list.Example with no user-defined symbols:
Example using two user-defined symbols:
In the last example, you can see that the character
'y'in the input string"x^3+y"was indeed interpreted as the symboly:myex + yis simplified to"2*y+x^3".