Ask Your Question
1

plot parametric curve from symbolic expressions

asked 2019-01-03 08:22:42 -0600

sagenotdead gravatar image

updated 2019-01-03 08:41:20 -0600

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 08:50:42 -0600

tmonteil gravatar image

updated 2019-01-03 12:12:00 -0600

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 08:22:42 -0600

Seen: 74 times

Last updated: Jan 03