ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 03 Mar 2019 18:38:12 +0100False implicit plothttps://ask.sagemath.org/question/45627/false-implicit-plot/Hello
I write in SAGE
implicit_plot(y==1/2, (-1,1),(-1,1))
and it returns the graph of the line x=1/2. Why? creyesm1992Sun, 03 Mar 2019 18:38:12 +0100https://ask.sagemath.org/question/45627/implicit_plot plot of a listhttps://ask.sagemath.org/question/45196/implicit_plot-plot-of-a-list/ Hello,
On Sage 8.5, Release Date: 2018-12-22, I am doing
`var('x,y')`
`F1 =plot([k/x for k in [-5..5]], (-5, 5), ymin=-5, ymax = 5, detect_poles=True, color="red")`
`F2= implicit_plot([y^2 - x^2 -c for c in [-5..5]], (x,-5,5), (y,-5,5))`
to obtain two families of orthogonal curves. While the first family is ok, there seems to be a problem with the second one.
I can circunvent my problem by doing a lis of plots (instead of the plot of a list), as follows :
`[implicit_plot(y^2 - x^2 -c ==0, (x,-5,5), (y,-5,5), color="blue" ) for c in [-5..5]]`
I was expecting that `plot(...)` and `implicit_plot(...)` would beheave in the same manner in this situation. Why this is not the case? Am I missing something in the syntax?
Regards,
JC
JCSun, 27 Jan 2019 04:47:23 +0100https://ask.sagemath.org/question/45196/Plot a circle, by utilizing an equation solved for xhttps://ask.sagemath.org/question/10483/plot-a-circle-by-utilizing-an-equation-solved-for-x/The following code is an example of plotting the equation: x = y^2-3*x-5*y+7, i.e. an equation solved for x:
var('y')
f = y^2-3*x-5*y+7
Yax = x
Xax = y
p1= implicit_plot(f, (x,-4, 4), (y,-2, 6))
p3= implicit_plot(Yax, (x,-4, 4), (y,-2, 6),color='black')
p4= implicit_plot(Xax, (x,-4, 4), (y,-2, 6),color='black')
p0= p1+p3+p4
show(p0)
According to the author, he solved the following equation in terms of x: x^2+y^2 = 25
He got the following: x = sqrt(25 - y^25) and x = -sqrt(25-y^2), i.e. ± sqrt(25 - y^25).
According to him, he plotted the 2 separate results to obtain a circle plot/graph.
How can I generate such an output on Sage 5.9?
The following was my best attempt, but I received no output for the plot of: sqrt(25-y^2):
var('y')
f = sqrt(25-y^2)
Yax = x
Xax = y
p1= implicit_plot(f, (x,-50, 50), (y,-50, 50))
p3= implicit_plot(Yax, (x,-50, 50), (y,-50, 50), color='black')
p4= implicit_plot(Xax, (x,-50, 50), (y,-50, 50), color='black')
p0= p1+p3+p4
show(p0)bxdinThu, 29 Aug 2013 00:40:07 +0200https://ask.sagemath.org/question/10483/