Ask Your Question
1

plot parametric curve from symbolic expressions

asked 2019-01-03 15:22:42 +0200

sagenotdead gravatar image

updated 2019-01-03 15:41:20 +0200

I would like to get the plot of the parametric curve $(x1(t),x2(t)$ for $t$ in $[0,1]$.

var('ts')

x1sol=vector([-cos(ts),sin(ts)])*exp(ts/2)

x11 = x1sol[0]

show(plot(x11(ts),x12(ts),(ts,0,1)))

I get the error: TypeError: unable to simplify to float approximation

I would like to avoid formulation as :

def x1(t): ....

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2019-01-03 15:50:42 +0200

tmonteil gravatar image

updated 2019-01-03 19:12:00 +0200

There is a dedicated function for parametric plots:

sage: parametric_plot(x1sol, (ts, 0, 1))
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: 2019-01-03 15:22:42 +0200

Seen: 169 times

Last updated: Jan 03 '19