Community Profile

photo

Eli


Active since 2019

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Content Feed

View by

Question


conversion from binary to decimal
disp('conversion from binary to decimal'); z=input('give a floating point number ','s'); n=strfind(z,'.'); %index of the . ...

4 years ago | 1 answer | 0

1

answer

Question


Unstable derivative approximation when steps get too small
lim f(x+h) - f(x) / h h-->0 Approximation improves when h gets smaller, but when h gets too small approximation gets worse. Wh...

4 years ago | 2 answers | 0

2

answers

Question


Why this algorithm produces a relative error?
sum1=single(0); . k=0; sum=single(1); while(sum==sum1) sum=sum1; k=k+1; sum1=sum+single(1/k^2); end disp('expected r...

4 years ago | 2 answers | 0

2

answers