Ask Your Question

froli78's profile - activity

2024-01-11 22:01:51 +0200 received badge  Notable Question (source)
2024-01-11 22:01:51 +0200 received badge  Popular Question (source)
2020-11-24 00:33:15 +0200 asked a question How to define y=constant function to plot

Hi!

I'm newbe with SageMath and i would like to make an y=constant function to plot but i don't find a way to do it.

I can do x=constant functions plot easily:

c=1 plot(c, (x,-2,2))

But how can I do y=constant if it is possible!?

Thanks!

2020-11-21 22:19:49 +0200 received badge  Scholar (source)
2020-11-21 19:01:06 +0200 received badge  Nice Question (source)
2020-11-21 16:26:21 +0200 received badge  Editor (source)
2020-11-21 16:21:18 +0200 received badge  Student (source)
2020-11-21 15:23:38 +0200 asked a question solve result contain variable which to solved

Hi!

I'm newbie with Sage please help me what I'm doing wrong!

I do:

(a,l,x) = var('a,l,x')

solve(1/(a*(x-1))==(sqrt(x^2+1^2)/2/l),x)

--> [x == (sqrt(x^2 + 1)*a + 2*l)/(sqrt(x^2 + 1)*a)]

Why x result contain x itself!? It's not ture for any x.

If I set a,l params

a=24

l=1.28

solve(1/(a*(x-1))==(sqrt(x^2+1^2)/2/l),x)

--> [x == 1/75*(75*sqrt(x^2 + 1) + 8)/sqrt(x^2 + 1)]

So result still contain x itself... I'm confused about it.

Thanks for help.