Community Profile

photo

Fahad


Last seen: plus de 2 ans il y a Actif depuis 2021

Followers: 0   Following: 0

Statistiques

  • Thankful Level 1
  • First Review

Afficher les badges

Feeds

Afficher par

Question


I have the following code to calculate d/dx sin(0.5)) using first derivative principle and compare it with the real value. Why does err starts increasing again?
clc n=30; x=0.5; h=zeros(n,1); y=zeros(n,1); err=zeros(n,1); h(1)=1; for i=1:n-1 y(i)=(sin(x+h(i))-sin(x))/h(i) ...

plus de 2 ans il y a | 1 réponse | 0

1

réponse