I can't find any information in the Xcas manual about using greek letters for variable names. I know that some are available, like sigma. Is there a way to use the letter Epsilon?
Matt
Greek letters for variable names
Modérateur : xcasadmin
-
- Messages : 146
- Inscription : mer. janv. 13, 2010 3:20 pm
Re: Greek letters for variable names
"epsilon" and "Gamma" (uppercase gamma) are built-in function names, so they can't be used as symbols. If I'm not mistaken, all other greek symbols which are different from Latin letters (alpha, beta etc.) are available. If you want to use epsilon as a symbol you may use:
So "eps" will be printed as the greek letter.
Code : Tout sélectionner
eps:=make_symbol("epsilon")
-
- Messages : 146
- Inscription : mer. janv. 13, 2010 3:20 pm
Re: Greek letters for variable names
thanks! exactly what I needed
Matt
(edit) Oops, it didn't work. The initial command works, but when you use the variable it gets evaluated to 1E-12.
Matt
(edit) Oops, it didn't work. The initial command works, but when you use the variable it gets evaluated to 1E-12.
Re: Greek letters for variable names
You can still run eval(eps,1). But that's a little bit tricky...