Hi:
I'm wondering if I'm missing something. SAGE can show that $\sin(x)^3
= \frac{3\sin(x) - \sin(3x)}{4}$
by the command
sage: y = sin(x)^3
sage: maxima(y).trigreduce()
(3*sin(x)-sin(3*x))/4
Is there any other way of doing this? The explicit call to maxima is
what I'm trying to avoid.
- David
On Sat, May 24, 2008 at 7:19 AM, David Joyner <[EMAIL PROTECTED]> wrote:
>
> Hi:
>
> I'm wondering if I'm missing something. SAGE can show that $\sin(x)^3
> = \frac{3\sin(x) - \sin(3x)}{4}$
> by the command
>
> sage: y = sin(x)^3
> sage: maxima(y).trigreduce()
> (3*sin(x)-sin(3*x))/4
>
> Is there
It seems that when I try to display LaTeX code in SAGE, it's eating up
some of the characters. Here is the Latex code I want to display:
L = "An ordered field is a field $F$ which is also an ordered set,
such that \\ \textbf{(i)} $x+y0$ if $x,y \in F$, and $x,y>0$."
'An ordered field is a fiel
The backslash character also happens to be the escape character for
python strings. See http://docs.python.org/ref/strings.html. So for
every backslash you want to get processed by jsmath you need an extra
backslash in your string. This quickly gets rather ugly.
As an alternative, you can prefix
Hi,
I use the function abs to know the distance between two
ComplexNumbers. Sometimes it returns a RealNumber, but sometimes it
returns a SymbolicComposition. When it returns SymbolicComposition, I
can not use it in a function expecting a RealNumber, and does not work
when I try to cast it myself