# Singular

 Note: If not registered, provide any username. For more comfort, register here.
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters.

 Smilies
 Font size: Tiny Small Normal Large Huge Font colour
Options:
 BBCode is ON [img] is ON [flash] is OFF [url] is ON Smilies are ON
 Disable BBCode Disable smilies Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.

Topic review - A "syntax"/notation problem
Author Message
 Dmitry
 Post subject: Re: A "syntax"/notation problem
 ok, thanks ok, thanks :D
 Posted: Sun Jan 19, 2014 8:17 am
 gorzel
 Post subject: Re: A "syntax"/notation problem
 Dmitry wrote:Version 3-1-6 gives me:> 3x^2-3*x^2;6x2Singular interprets 3x^2 as (3x)^2 which is 9*x^2, then the result 6x2 followsEverything left from the ^ upto an * or + or - is taken as one token,thus e.g. 2x2y^3 is 8*x^6*y^3;Certainly a user should know this behaviourbut it seems to be a bit hidden in the manual.Sadly, it is not stated precisely in the Getting started part:http://www.singular.uni-kl.de/Manual/la ... .htm#SEC13 But see Section 6.4 Miscellaneous oddities 2. monomials and precedence http://www.singular.uni-kl.de/Manual/3-1-6/sing_458.htmTo remember:If the variable names consist only of single letters, Singular allows to omit the * for the multiplication. If one do so, then also one don't use the caret ^ for the exponentiation.Conversely, if you use the long version with ^, then you should put the *, too. [quote="Dmitry"]Version 3-1-6 gives me:> 3x^2-3*x^2;6x2[/quote]Singular interprets 3x^2 as (3x)^2 which is 9*x^2, then the result 6x2 followsEverything left from the ^ upto an * or + or - is taken as one token,thus e.g. 2x2y^3 is 8*x^6*y^3;Certainly a user should know this behaviourbut it seems to be a bit hidden in the manual.Sadly, it is not stated precisely in the Getting started part:http://www.singular.uni-kl.de/Manual/latest/sing_7.htm#SEC13 But see Section 6.4 Miscellaneous oddities 2. monomials and precedence http://www.singular.uni-kl.de/Manual/3-1-6/sing_458.htm[b]To remember[/b]:If the variable names consist only of single letters, Singular allows to omit the * for the multiplication. If one do so, then also one don't use the caret ^ for the exponentiation.Conversely, if you use the long version with ^, then you should put the *, too.
 Posted: Thu Jan 16, 2014 6:47 pm
 Dmitry
 Post subject: A "syntax"/notation problem
 Version 3-1-6 gives me:> 3x^2-3*x^2;6x2(And of course this difference between 3x^2 and 3*x^2 influences other computations, e.g. Milnor number etc.)It is difficult to always remember, especially if one works with other computer systems. Could you correct this in the future version?Thanks! Version 3-1-6 gives me:> 3x^2-3*x^2;6x2(And of course this difference between 3x^2 and 3*x^2 influences other computations, e.g. Milnor number etc.)It is difficult to always remember, especially if one works with other computer systems. Could you correct this in the future version?Thanks!
 Posted: Thu Jan 16, 2014 10:46 am

 It is currently Thu Nov 15, 2018 11:13 am