Re: [sage-support] solve solution is this a bug?

2023-01-13 Thread Dima Pasechnik
On Fri, Jan 13, 2023 at 3:01 PM Emmanuel Charpentier wrote: > > In Google Groups, I can’t see the screenshot nor the notebook, but this is a > FAQ, so I risk an answer : > > solve, used without algorithm= uses Maxima’s solver. The latter may introduce > new variables to denote unknown, arbitrary

Re: [sage-support] solve solution is this a bug?

2023-01-13 Thread Dima Pasechnik
On Fri, Jan 13, 2023 at 2:27 PM 'Charles Bradshaw' via sage-support wrote: > > More info: > If I run my notebook code on https://sagecell.sagemath.org/ is see a huge > page of errors begining: sagecell does not take ipython notebooks, sorry, not a bug. > > /home/sc_serv/sage/src/sage/calculus/c

Re: [sage-support] solve solution is this a bug?

2023-01-13 Thread Emmanuel Charpentier
In Google Groups, I can’t see the screenshot nor the notebook, but this is a FAQ, so I risk an answer : solve, used without algorithm= uses Maxima’s solver. The latter may introduce new variables to denote unknown, arbitrary, quantities : “zxxx” denote integer arbitrary constants, “rxxx” deno

Re: [sage-support] solve solution is this a bug?

2023-01-13 Thread 'Charles Bradshaw' via sage-support
More info: If I run my notebook code on https://sagecell.sagemath.org/ is see a huge page of errors begining: /home/sc_serv/sage/src/sage/calculus/calculus.py:2509: DeprecationWarning: Importing union from here is deprecated; please use "from sage.misc.misc import union" instead. See https://tr

Re: [sage-support] solve solution is this a bug?

2023-01-13 Thread 'Charles Bradshaw' via sage-support
OK One more time. I finally figured out how to attach the the notebook. I hope it's in the right format. In the process of playing with the probllem I have re-numbered the lines. The pi*z1649 term now appears in line 5, 7 and 8 Where did the z come from?? Thanks for your patience. On Thursday

Re: [sage-support] solve solution is this a bug?

2023-01-12 Thread Dima Pasechnik
the screenshot does not show lines 113 and 98 you refer to. It might be better to send the notebook than the screenshot. On Thu, Jan 12, 2023 at 8:40 PM 'Charles Bradshaw' via sage-support wrote: > > My mistake, here is the screenshot > > On Thursday, January 12, 2023 at 8:14:20 PM UTC dim...@gma

Re: [sage-support] solve solution is this a bug?

2023-01-12 Thread 'Charles Bradshaw' via sage-support
My mistake, here is the screenshot On Thursday, January 12, 2023 at 8:14:20 PM UTC dim...@gmail.com wrote: > On Thu, Jan 12, 2023 at 8:00 PM 'Charles Bradshaw' via sage-support > wrote: > > > > In the attached screenshot line 'out [113]' and 'out [98]' please > observe 2*pi*z5484 > > the attemp

Re: [sage-support] solve solution is this a bug?

2023-01-12 Thread Dima Pasechnik
On Thu, Jan 12, 2023 at 8:00 PM 'Charles Bradshaw' via sage-support wrote: > > In the attached screenshot line 'out [113]' and 'out [98]' please observe > 2*pi*z5484 > the attempt to evaluate: line [114] produces the error x5484 is not defined there is no attachment. > > is this a bug or did

Re: [sage-support] solve and numerical answers

2020-09-14 Thread Vincent Delecroix
One way is to use polynomials sage: x = polygen(QQ) sage: (x^4 - 2*x - 1).roots(RealField(32), multiplicities=False) [-0.474626618, 1.39533699] sage: (x^4 - 2*x - 1).roots(ComplexField(128), multiplicities=False) [-0.47462661756260555032941320989493141267, 1.3953369944670730187931436130710553428

Re: [sage-support] solve

2018-10-05 Thread Dima Pasechnik
On Fri, Oct 5, 2018 at 12:05 PM HG wrote: > > I would like to solve these equations but I don't know how? > > > > t_0=t_p==gamma*(t-V*x/c^2);show(t_0) > > x_0=x_p==gamma*(x-V*t);show(x_0) > > > > solve(t_0,gamma*(t-V*x/c^2)) > > desolve(gamma*(t-V*x/c^2)==0,x) > > > > error desolve() takes at leas

Re: [sage-support] Solve Binary Linear System

2013-04-18 Thread John H Palmieri
On Thursday, April 18, 2013 8:01:38 AM UTC-7, juaninf wrote: > > Thanks, > > But if the matrix A is non-square How I will be able to solve?. I am > trying but I get number of rows of self must equal degree of B > This is a math question now. If A is n x k, and if you want to solve Ax = b, the

Re: [sage-support] Solve Binary Linear System

2013-04-18 Thread Juan Grados
Thanks, But if the matrix A is non-square How I will be able to solve?. I am trying but I get number of rows of self must equal degree of B 2013/4/17 Robert Bradshaw > sage: A = random_matrix(GF(2), 1, 1) > sage: A.det() > 1 > sage: b = random_vector(GF(2), 1) > sage: %time x = A \

Re: [sage-support] Solve Binary Linear System

2013-04-17 Thread Robert Bradshaw
sage: A = random_matrix(GF(2), 1, 1) sage: A.det() 1 sage: b = random_vector(GF(2), 1) sage: %time x = A \ b CPU times: user 1.61 s, sys: 0.06 s, total: 1.67 s Wall time: 1.67 s sage: A * x == b True On Wed, Apr 17, 2013 at 1:45 PM, Juan Grados wrote: > I have the equation Ax=b where

Re: [sage-support] Solve polynomial over ring

2013-01-30 Thread Santanu Sarkar
Thank you. On 30 January 2013 10:17, Charles Bouillaguet wrote: > On Jan 30, 2013, at 3:20 PM, Santanu Sarkar wrote: > > > > > N=8 > > R.=Integers(N)[] > > f=x^2-1 > > print f.roots() > > > Try : > > sage: print f.roots(multiplicities=False) > [1, 3, 5, 7] > > It's a start... > --- > Charles Bou

Re: [sage-support] Solve polynomial over ring

2013-01-30 Thread Charles Bouillaguet
On Jan 30, 2013, at 3:20 PM, Santanu Sarkar wrote: > > N=8 > R.=Integers(N)[] > f=x^2-1 > print f.roots() Try : sage: print f.roots(multiplicities=False) [1, 3, 5, 7] It's a start... --- Charles Bouillaguet http://www.lifl.fr/~bouillaguet/ -- You received this message because you are subsc

Re: Re: [sage-support] Solve system of non linear equations

2012-12-23 Thread Martin Albrecht
try ./sage -i instead of sage -i -- sent from a tablet, please excuse my brevity On Dec 23, 2012 5:38 PM, "Santanu Sarkar" wrote: > I want to install sat solver. I have the following error > a@a-Compaq-Presario-C700-Notebook-PC:~/Downloads/sage-5.2-linux-32bit-ubuntu_12.04_lts-i686-Linux$ > sag

Re: Re: [sage-support] Solve system of non linear equations

2012-12-13 Thread Martin Albrecht
On Sunday 09 Dec 2012, Georgi Guninski wrote: > On Sat, Dec 08, 2012 at 11:44:19AM +0530, Santanu Sarkar wrote: > > Dear all, > > > > I have a system of non linear equations over GF(2). How to solve > > > > them in Sage? > > If you need to solve large nonlinear systems over GF(2) and don't >

Re: [sage-support] Solve system of non linear equations

2012-12-12 Thread Charles Bouillaguet
> On Sat, Dec 08, 2012 at 11:44:19AM +0530, Santanu Sarkar wrote: > > Dear all, > > I have a system of non linear equations over GF(2). How to solve > > them in Sage? How large is your system ? (how many variables ?). What is the largest degree in an equation ? Depending on the answer to these

Re: [sage-support] Solve system of non linear equations

2012-12-12 Thread Santanu Sarkar
Thank you very much for your help. On 9 December 2012 12:18, Georgi Guninski wrote: > On Sat, Dec 08, 2012 at 11:44:19AM +0530, Santanu Sarkar wrote: > > Dear all, > > I have a system of non linear equations over GF(2). How to solve > > them in Sage? > > > > If you need to solve large nonlinea

Re: [sage-support] Solve system of non linear equations

2012-12-08 Thread Georgi Guninski
On Sat, Dec 08, 2012 at 11:44:19AM +0530, Santanu Sarkar wrote: > Dear all, > I have a system of non linear equations over GF(2). How to solve > them in Sage? > If you need to solve large nonlinear systems over GF(2) and don't insist on using sage I suspect a better choice is to convert them to

Re: [sage-support] solve() exception when variable names contain brackets

2011-07-01 Thread Michael Orlitzky
On 06/30/11 02:59, Laurent wrote: > > Maybe you want to do something like that : > > sage: a=var('x,y,z') > sage: a > [x, y, z] > sage: solve( a[0]*x==x,x) # This is x^2==x > [x == 0, x == 1] > > > > If you need to generate n variables: > > sage: s=",".join(["a"+str(i) for i in range(1,10)])

Re: [sage-support] solve() exception when variable names contain brackets

2011-06-30 Thread Laurent
Le 29/06/2011 22:22, Michael Orlitzky a écrit : This is probably just a case of "don't do that," but I thought I'd check: sage: c = [ var('c[0]') ] sage: system = c[0]*x == 1 sage: solve(system, c[0]) ... TypeError: unable to make sense of Maxima expression '[c[0]==1/x]' in

Re: [sage-support] solve - algebraic solution?

2010-04-02 Thread bb
William Stein schrieb: On Fri, Apr 2, 2010 at 10:11 AM, bb wrote: Why does Sage not solve the equation? (The quadratic equation is just a test.) sage: x,y,a,b = var('x, y, a, b') sage: solve([x - 2*y == a, x + 3*y == b],[x,y]); sage: solve([x^2 + a*x + b == 0],x) [x == -1/2*a - 1/2*sqrt(a

Re: [sage-support] solve - algebraic solution?

2010-04-02 Thread William Stein
On Fri, Apr 2, 2010 at 10:11 AM, bb wrote: > Why does Sage not solve the equation? (The quadratic equation is just a > test.) > > sage: x,y,a,b = var('x, y, a, b') > sage:  solve([x - 2*y == a,  x + 3*y == b],[x,y]); > sage: solve([x^2 + a*x + b == 0],x) > [x == -1/2*a - 1/2*sqrt(a^2 - 4*b), x ==

Re: [sage-support] Solve fails for a cubic

2010-03-01 Thread Alex Ghitza
On Sun, 28 Feb 2010 23:02:08 -0800 (PST), Sharpie wrote: > However, tonight I have been trying to solve an open channel flow > problem which requires me to find the roots of: > > y^3 - 1.39027132807289 * y^2 + 0.090610488164005 == 0 > > find_root() does return the correct answers-- but in this

Re: [sage-support] Solve recurrences using Sage ?

2010-02-10 Thread Nathann Cohen
Thank you ! :-) Nathann On 10 February 2010 09:58, Mike Hansen wrote: > On Wed, Feb 10, 2010 at 12:54 AM, Nathann Cohen > wrote: >> Hello everybody >> >> I just learnt about the "rsolve" function from Maple, which seems to >> give the formula of sequences defined by recurrence.. Is there

Re: [sage-support] Solve recurrences using Sage ?

2010-02-10 Thread Mike Hansen
On Wed, Feb 10, 2010 at 12:54 AM, Nathann Cohen wrote: > Hello everybody > > I just learnt about the "rsolve" function from Maple, which seems to > give the formula of sequences defined by recurrence.. Is there a > similar function in Sage ? I don't believe there is anything in the Sage libr