Ask Your Question
1

evaluate (simplify) trigonometric expression

asked 2018-04-12 19:13:32 +0200

watty_ gravatar image
t = var('t')
R = vector ((3*cos(t), 3*sin(t), 4*t))

dRdt = R.diff(t)
show(dRdt)

ds = dRdt.norm()
show(ds)

when I try to show ds it gives mi a trigonometric expression which is actually is equal to 5. I tried simplify() and trig_simplify but it didn't help...

Any tips are welcome. Thanks in advance

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-04-12 21:03:55 +0200

Emmanuel Charpentier gravatar image

updated 2018-04-12 21:55:38 +0200

Well...

sage: R=vector([3*cos(t),3*sin(t),4*t]);R
(3*cos(t), 3*sin(t), 4*t)
sage: with assuming(t,"real"): (R.diff(t).norm()^2).trig_reduce().sqrt()
5

or even :

sage: with assuming(t,"real"): R.diff(t).norm().trig_reduce()
5

Is that acceptable to you ?

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: 2018-04-12 19:13:32 +0200

Seen: 479 times

Last updated: Apr 12 '18