Numerical differentiation, fsolve or forward differentiation

조회 수: 3 (최근 30일)
alexander ulappa
alexander ulappa 2016년 10월 19일
편집: Torsten 2016년 10월 20일
Hello!
I have a function V(see below) where all the values except theta(θ) are known. I need to calculate and plot dv/dθ numerically for 0<=θ<=90 and find the values of θ when V=0. Is using fsolve a good alternative to using forward/backward differentiation. I need some tips to get started!
V=0.5*k*l^2*sind(theta).^2+0.5*m*g*l*cosd(theta);% my function
  댓글 수: 1
Torsten
Torsten 2016년 10월 20일
편집: Torsten 2016년 10월 20일
I don't understand why you think that finding the roots of v (finding the values of theta where v=0) has anything to do with calculating and plotting dv/d(theta). Or do you want to program Newton's method with numerical derivatives ?
Best wishes
Torsten.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Function Creation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by