Ask Your Question
0

How to Plot/Graph/Show a system of linear equations

asked 2017-03-01 22:24:42 +0200

mellow-yellow gravatar image

updated 2017-03-02 10:41:02 +0200

tmonteil gravatar image

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)
    
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2017-03-02 10:44:01 +0200

tmonteil gravatar image

If the obtained picture corresponds to what you want, i would say that your solution is a reasonable way to do it.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-03-01 22:07:21 +0200

Seen: 1,124 times

Last updated: Mar 02 '17