2019-09-08 05:32:35 -0600 received badge ● Supporter (source) 2019-09-08 04:49:59 -0600 received badge ● Nice Question (source) 2019-09-07 19:15:09 -0600 asked a question solving simultaneous equations with solve() I am trying to solve a set of (fairly simple) nonlinear simultaneous algebraic equations with real solutions as shown below. I know the equations have real solutions (they are in the comment line), but I cannot get sage to produce them. If I remove the 'sympy' and 'real' it produces complex solutions. Is there a better method for solving equations like these? x,y,z=var('x y z') s=solve([x*x*x-y*y==10.5,3.0*x*y+y==4.6],x,y,algorithm='sympy',domain='real',solution_dict=True) #solutions are x=2.215, y=0.6018 print 'second problem:',' x=',s[x],' y=',s[y]  2019-09-02 11:36:40 -0600 answered a question getting a float result from solve Sorry, I tried to attach an image of it and I messed it up. Here is the code: a,b=var('a b') solve([7.0==asqrt(16)/(1+b/16.0),22==asqrt(4)/(1+b/4)],a,b) print a.n() The result the solve command gives is the ratios of integers. (I typed an asterisk between the a and the sqrt, but it doesn't show up...) 2019-09-02 10:24:12 -0600 asked a question getting a float result from solve I am trying to solve a system of 2eqs, and sage keeps giving me integer results. When I try to print a.n() I get an error cannot evaluate symbolic expression numerically. Sorry, I tried to attach an image of it and I messed it up. Here is the code: a,b=var('a b') solve([7.0==a*sqrt(16)/(1+b/16.0),22==a*sqrt(4)/(1+b/4)],a,b) print a.n()  The result the solve command gives is the ratios of integers. (I typed an asterisk between the a and the sqrt, but it doesn't show up...) 2019-06-05 06:32:00 -0600 received badge ● Popular Question (source) 2018-01-15 15:44:03 -0600 commented answer Finding extrema and zeros in lists Both of your solutions are very helpful! Thanks much! 2018-01-15 15:41:22 -0600 commented answer Finding extrema and zeros in lists Thanks very much!! 2018-01-11 12:08:33 -0600 received badge ● Editor (source) 2018-01-11 12:07:44 -0600 answered a question Finding extrema and zeros in lists OK, I think I have a path to a solution. I have changed the differential equation so that it has zeros and this code prints the values on either side of where the function crosses zero. I can do something similar for the extrema. So I guess I am now asking if there is a function call that does this, or if there is a smarter way. Thanks, Wayne var('t y z') P=desolve_system_rk4([z,-z^2*(-2+t/(1+t))-y],[y,z],ics=[0.1,10,2],ivar=t,end_points=100) Q=[ [t1,y1] for t1,y1,z1 in P] line(Q).show() print len(Q) [a1,b1]=Q for i in range(1,len(Q)): [a2,b2]=Q[i] if(((b1<0.)and(b2>0.)) or ((b1>0.)and(b2<0.))): print a1,b1,a2,b2 a1=a2 b1=b2  2018-01-11 06:27:25 -0600 asked a question Finding extrema and zeros in lists I create a list Q (below) of pairs of numbers [t1,z1], I want the pairs (maybe just a print of them?) at the local extrema (of z1) and where z1 crosses zero. Is there a simple way to do this? var('t y z') P=desolve_system_rk4([z,0.005*exp(-y/8000)*z^2-10],[y,z],ics=[0,32000,0],ivar=t,end_points=400) Q=[ [t1,z1] for t1,y1,z1 in P]  Thanks, Wayne 2018-01-10 22:25:20 -0600 received badge ● Scholar (source) 2017-12-30 21:13:14 -0600 commented answer solving nonlinear second order ordinary differential equations numerically Thanks very much Calc314! Clearly I have a lot to learn. I will work on this. 2017-12-29 23:11:00 -0600 received badge ● Student (source) 2017-12-29 18:10:40 -0600 answered a question solving nonlinear second order ordinary differential equations numerically Thanks Eric, I meant the g(t) term to be a y(t) term so the equation looks like y''(t)+f(t)(y'(t))^2 +y(t)=0 I don't think this is easily turned into a first order equation. Wayne 2017-12-29 13:34:21 -0600 answered a question numerical solutions to second order nonlinear differential equations Oops, I should have had a y(t) term in there, e.g. y''(t)+f(t)(y'(t))^2+y(t)=0 2017-12-29 11:12:21 -0600 asked a question numerical solutions to second order nonlinear differential equations Are there any Sage tools that will numerically solve equations of, for example, this form: y''(t)+f(t)(y'(t))^2+g(t)=0 (where the derivatives are with respect to t)? Thanks, Wayne 2017-12-29 11:12:21 -0600 asked a question solving nonlinear second order ordinary differential equations numerically Are there any Sage tools that will numerically solve equations of, for example, this form: y''(t)+f(t)(y'(t))^2+g(t)=0 (where the derivatives are with respect to t)? Thanks, Wayne