[sage-support] Re: how to factorize an expression with constant variables ?

2012-09-19 Thread mazkime
sorry for the late answer. After some investigations on the internet, I did not find any convenient solution. My concern being on polynomials, I ended up doing some copy/paste of my expressions and working in another window with a polynomial ring defined the following way : R. = QQ[] R. = Polyn

[sage-support] Re: Notebook evaluate fails return: OSX 10.6.8

2012-09-03 Thread mazkime
I had the same problem and deleting the 'sage_notebook.sagenb' directory from '~/.sage/' resolved it. Thanks for the tip. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to sage-support@googlegroups.com. To uns

Re: [sage-support] how to factorize an expression with constant variables ?

2012-09-03 Thread mazkime
Thank you for your answer and sorry for the typo mistake. Your solution works well with the example given but doesn't work as I would like with exponents (x^2, ...). What I would like to get is Sage returning expressions with coefficients sorted by the value of the exponents, like when using mul

[sage-support] how to factorize an expression with constant variables ?

2012-09-03 Thread mazkime
Hello, I would like to factorize an expression with sage that contains constant variables (i.e. parameters), but I cannot figure out how to do that. Here is an example : x, y are variables and A is a parameter * var('A x y') f = A*x + x + A^2*exp(y) + y print (f.factor()) **

[sage-support] Sage gives a wrong taylor expansion

2012-08-21 Thread mazkime
Hello, I used sage to find the root (named P2plus) of an equation. The variable is P1plus and there are 3 parameters, M1, M2 and gamma. The expression of the root (P2plus) being complicated, and as I am interested in its behavior for small values of P1plus, I asked Sage for the Taylor expansion

[sage-support] writing an equation on several lines

2012-07-20 Thread mazkime
I encounter a problem splitting and equation on several lines using the backslash. Splitting works for any line, except for symbolic expressions where the error message ' SyntaxError: invalid syntax' occurs. A little example. * the following lines work : f = x^2 \ + 1 print f * but those d

[sage-support] Re: Sage fails to solve a polynomial (2nd order) system. What am I doing wrong ?

2012-07-07 Thread mazkime
As Sage fails to solve the non-linear (2nd order polynomial) systems am I interested in, I tried to force the substitution of variables in the system to obtain an answer. In the example given below, the system corresponds to : g1 = 0 g2 = 0 where the unknowns are P1m and P2p. The others variable

[sage-support] Re: Sage fails to solve a polynomial (2nd order) system. What am I doing wrong ?

2012-07-07 Thread mazkime
As Sage fails to solve the non-linear (2nd order polynomial) systems am I interested in, I tried to force the substitution of variables in the system to obtain an answer. In the example given below, the system corresponds to : g1 = 0 g2 = 0 where the unknowns are P1m and P2p. The others variable

[sage-support] Sage fails to solve a polynomial (2nd order) system. What am I doing wrong ?

2012-06-29 Thread mazkime
Hello, I am new to Sage and I want to use it to solve non-linear systems, used to model physical phenomenons. I unfortunately met some problems trying to solve a non-linear system composed of 3 polynoms (2nd order) I first successfully solved the linear problem, but when I try with the non-line