Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question
1

plot parametric curve from symbolic expressions

asked 6 years ago

sagenotdead gravatar image

updated 6 years ago

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): ....

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
3

answered 6 years ago

tmonteil gravatar image

updated 6 years ago

There is a dedicated function for parametric plots:

sage: parametric_plot(x1sol, (ts, 0, 1))
Preview: (hide)
link

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: 6 years ago

Seen: 370 times

Last updated: Jan 03 '19