On Dec 19, 4:52 pm, amscopub-travel <[EMAIL PROTECTED]> wrote:
> As per an irc conversation last week, here is a list of math
> expressions using implicit multiplication. Sorry for the delay:
>
> a b c(a^2 + b^2 + c^2)
> a b + c^2 == y
> (z/(2sin(y z/55))+y+x)^(z/(2sin(y z/55))+y+x)
> 2(x/2)^2+4(2x)^2
> 0==-16x^2+48x
> (x+2)(x-1)
> x^2-4x+4
> 2(x+3)(x-4)
> 2x^2-2x-25<=0
> -16x^2+132x
> 2(x+3)(x-4)
> x^2-5x+4
> 3(x-5)(x-5)
> (x-1)(x-2)x
> (a-b)(a-b)(a-b)
>
> Take any usual python expression and drop the multiplication operator
> (or really make it *optional*). So for example, 2*x would be 2x.
> However, when ambiguity would result in variable names, use * or a
> space. For example, a*b*c would be a b c (to distinguish from the
> variable "abc").
Hi,
> One other thing, I'm not sure if this was fixed in 2.9 but I'm running
> 2.8.15---the docs say that any single lowercase or uppercase letter is
> predefined to be a variable. However, typing an expression like "a+c"
> gives me an error message (name 'c' is not defined). I have to
> explicitly define every variable except "x".
Yep, that has been corrected in the documentation for 2.9.
Cheers,
Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---