Feeds
提问
If I have functions written that require a user input, how would I test different points without copy and pasting the code over and over again?
This is the code I have: x = input('Type a value for x: '); for i = 1:9 vec(i) = (-1)^(i+1)*x^(2*i-1)/factorial(2*i-1...
9 years 前 | 1 个回答 | 0
1
个回答提问
How do I write a function to find the taylor series expansion of sin(x) to the 9th term?
I am asked to create a function file to evaluate the value of sin(x) accurate to 9 Taylor Series terms. I know there is a way to...
9 years 前 | 1 个回答 | 0
1
个回答提问
How do I graph a constant within a function?
I was given x = .5*g*t^2 where x is the position of an object at time t and g is the acceleration. I was asked to "cre...
9 years 前 | 1 个回答 | 0
1
个回答提问
How can I evaluate a function at a vector and plot the returned values?
Using this function code: function [y1,y2] = f(x1) y1 = 6*sin(x1) + cos(2*x1) y2 = 12*sin(2*x1) + cos(4*x1) end I n...
9 years 前 | 1 个回答 | 0
