Feeds
질문
I want to round off my answer upto 4 decimal place but my code dosen't work.
function d=divided_diff(a,b,c,f1,f2,f3) p=vpa((f2-f1)/(b-a)); q=vpa((f3-f2)/(c-b)); d=(q-p)/(c-a); d=round(d,4); ...
7년 초과 전 | 답변 수: 0 | 0
0
답변질문
I want to make a function in which it takes 2 Input argument (polynomial order n , polynomial coefficient vector ) and gives the output polynomial equation f(x). Also, In the function i take input values of x and my function gives output values of f
function poly(n,V) syms x f(x)=V(1)*(x^0); for i=n:-1:1 f(x)=V(i+1)*(x^i)+f(x); end f(x) ...
7년 초과 전 | 답변 수: 2 | 0
2
답변질문
I want to make a programming function in which I want to take input any mathematical function like f(x)=sin(x)+x^2. then I take a input x and my function return a value of f(x).but i don't know how can i do?
I want to make a programming function in which I want to take input any mathematical function like f(x)=sin(x)+x^2. then I take ...
7년 초과 전 | 답변 수: 2 | 0