Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Mar 28th, 2020 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function [koef,m]=oscilirajociPolinom(F,a,b,n)
  2. format long
  3. vektor=a:((b-a)/(n+1)):b;
  4.  
  5. y=F(vektor);
  6. y=y(:);
  7. A=ones(n+2,n+2);
  8. for i = 1:(n+2)
  9.     for j=2:(n+1)
  10.     A(i,j)=vektor(i)^(j-1);  
  11.     end
  12. end
  13. for i=1:(n+2)
  14.     A(i,n+2)=(-1)^(i-1);
  15. end
  16. koef=A\y;
  17. m=koef(n+2);
  18. koef=koef(1:end-1);
  19.  
  20.  
  21. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top