Vipul Kumar
自 2018 起处于活动状态
Followers: 0 Following: 0
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); ...
6 years 前 | 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) ...
6 years 前 | 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 ...
6 years 前 | 2 个回答 | 0