Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Displaying tan instead of sin / cos

Newbie question. How do I get SageMath to use tan in its result instead of the ratio and sin and cos? (I'd post an image, but I don't have 60 points yet :( Visualize sin(a bunch of stuff) / cos(same bunch of stuff) )

Thanks, Eric

Displaying tan instead of sin / cos

Newbie question. How do I get SageMath to use tan in its result instead of the ratio and sin and cos? (I'd post an image, but cos?

Example:

sage: a = sin(x^2 + x + 1) / cos(x^2 + x + 1)
sage: a
sin(x^2 + x + 1)/cos(x^2 + x + 1)

I don't have 60 points yet :( Visualize sin(a bunch of stuff) / cos(same bunch of stuff) )would hope to see instead:

tan(x^2 + x + 1)

Thanks, Eric