f(x):=x^2; Echo({"The square of two is ",f(2)}); |
In> PrettyForm(Taylor(x,0,9)Sin(x)) / 3 \ 5 / 7 \ 9 -\ x / x -\ x / x x + ------- + --- + ------- + ------ 6 120 5040 362880 Out> True; |
This function is different from Read() in that it parses an expression in lisp syntax: so you need to type (+ a b) in stead of a+b. The advantage of lisp syntax is that it is less unambiguous than the infix operator grammar Yacas uses by default.
This is similar to the way php works. You can have a static text file with dynamic content generated by Yacas.