That's a bug in the html file
http://axiom-developer.org/axiom-website/hyperdoc/axbook/section-0.1.xhtml
The line
sinCosExpandRules := rule; sin(x+y) == sin(x)*cos(y) + sin(y)*cos(x);
cos(x+y) == cos(x)*cos(y) - sin(x)*sin(y); sin(2*x) ==
2*sin(x)*cos(x); cos(2*x) == cos(x)**2 - sin(x)**2
should be transformed to this... (note the extra parentheses)...
(1) -> sinCosExpandRules := rule ( sin(x+y) == sin(x)*cos(y) +
sin(y)*cos(x); cos(x+y) == cos(x)*cos(y) - sin(x)*sin(y); sin(2*x)
== 2*sin(x)*cos(x); cos(2*x) == cos(x)**2 - sin(x)**2)
(1)
{sin(y + x) == cos(x)sin(y) + cos(y)sin(x),
cos(y + x) == - sin(x)sin(y) + cos(x)cos(y), sin(2x) == 2cos(x)sin(x),
2 2
cos(2x) == - sin(x) + cos(x) }
Type:
Ruleset(Integer,Integer,Expression(Integer))
Seemingly, in the translation somebody translated a newline to
semicolon. This is wrong here.
If you enter
sinCosExpandRules := rule
sin(x+y) == sin(x)*cos(y) + sin(y)*cos(x)
cos(x+y) == cos(x)*cos(y) - sin(x)*sin(y)
sin(2*x) == 2*sin(x)*cos(x)
cos(2*x) == cos(x)**2 - sin(x)**2
exactly like this into a file scer.input and then say
)read scer.input
it should also work.
I faintly remember that long ago Axiom used to know how to enter
multiline expressions in the interpreter. But my memory might be wrong.
Ralf
--
You received this message because you are subscribed to the Google Groups "FriCAS -
computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/fricas-devel?hl=en.