Hi Germano, On 2015-09-21, Germano Massullo <[email protected]> wrote: >> >> derivative(5*x, x) > > Putting a * solves the problem. Does SageMath really need * symbol to > understand that 5x is 5*x ???? If yes there is something really wrong in SM > syntax...
What computer algebra systems (or pocket calculators) would understand that 5x means 5*x? Anyway, implicit multiplication is optional in SageMath. Have a look at the function implicit_multiplication (as usual, you can see the documentation of the command by typing implicit_multiplication? followed by return on the command line or shift-return in the notebook). After implicit_multiplication(True), the incorrect syntax 5x is automatically translated into the correct syntax 5*x---in an interactive session. If you are writing a module then you have to stick to Python syntax (Python is the underlying language of Sage). Best regards, Simon -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
