Mass of a wire in shape of helix
5 views (last 30 days)
syms x y z r t rho
cos^2(x)+sin^2(x) should be equal to 1. As the problem above it not simply to 1. What are the way to simplify the answer by cos^2(pi*t)+sin^2(pi*t)= 1.
Bjorn Gustavsson on 14 Jun 2022
The symbolic tools make the default interpretation that all variables are complex. Therefore it cannot make that simplification.
If you explicitly constrain the variables to be real and use the simplify suggestion by@Ganesh you get:
syms x y z r t rho real
Lengthofhelix = simplify(int(rho*norm(diff(r,t)),t,[0,1]))