ASKSAGE: Sage Q&A Forum - Latest question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 01 Mar 2017 15:07:21 -0600How to Plot/Graph/Show a system of linear equationshttps://ask.sagemath.org/question/36780/how-to-plotgraphshow-a-system-of-linear-equations/Disclaimer: I'm new to Sage Math and Linear equations.
Background: Google will plot/graph this search: "plot 3x+4y"
Questions:
1. In Sage Math, how can I show similar output as Google?
2. Is there a better way, in 2D or 3D, to plot the following? 3x+4y=2.5 AND 5x-4y=25.5 ?
x, y = var('x,y')
a=3*x+4*y==2.5
b=5*x-4*y==25.5
p1=implicit_plot(a, (x,-2,5), (y,-4,4), axes="true", aspect_ratio=1)
p2=implicit_plot(b, (x,-2,5), (y,-4,4), axes="true", aspect_ratio=1)
show(p1+p2)mellow-yellowWed, 01 Mar 2017 15:07:21 -0600https://ask.sagemath.org/question/36780/Plot the intersection of two surfaces (or solutions of a system of eqs)https://ask.sagemath.org/question/33418/plot-the-intersection-of-two-surfaces-or-solutions-of-a-system-of-eqs/ Hi everybody,
I'd like to plot the solutions of the system
$$(X + Y )(X − Z^3)=0,$$
$$XY + Y^2=0.$$
in 3D, I mean, the set of points (X,Y,Z) in IR^3 that verify the system. I don't know how to do it. I was searching how to plot the intersection of both surfaces, but neither I could. ¿Could anyone tell me how to do it?
Thanks in advanceMinkowskiMon, 16 May 2016 11:03:59 -0500https://ask.sagemath.org/question/33418/A very nonlinear system of three equationshttps://ask.sagemath.org/question/10506/a-very-nonlinear-system-of-three-equations/Here's a fun little problem: determine the exponential curve f(x) = c + ba^x defined by three points, (2,10), (4,6), and (5,5).
The system of three equations and three unknowns is
10 = c + ba^2
6 = c + ba^4
5 = c + ba^5
It's not that hard to solve numerically. With a little algebraic substitution and iteration, the answer turns out to be
a = 0.640388203
b = 16.53456516
c = 3.219223594
But is there a more elegant way to use Sage to arrive at this result? I'm stumped.OrionNavWed, 04 Sep 2013 21:15:08 -0500https://ask.sagemath.org/question/10506/