abracadabra1
Diamond Member
Hey there fellas.
I'm stumbling on this problem in MATLAB. I've been trying to create two distinct *.m files, one with a for loop and another with a while loop to run the operation, but it just doesn't seem to work. I get matrix dimension problems, missing operators, and all sorts of problems. Any help would be greatly appreciated. Here's the problem:
4) Use MatLab to produce a table of values of the functions :x sqrt(x) x^4 1/(1+x^3) exp(x) x^8/factorial(8) and k(x)
where you will define k(x) in an m-file to be the smallest strictly positive whole number n such that x^(2*n)/factorial(2*n) is less than
1e-4. The x values to use are 0 0.2 0.4 0.6 and so on to 3.
Thanks!
I'm stumbling on this problem in MATLAB. I've been trying to create two distinct *.m files, one with a for loop and another with a while loop to run the operation, but it just doesn't seem to work. I get matrix dimension problems, missing operators, and all sorts of problems. Any help would be greatly appreciated. Here's the problem:
4) Use MatLab to produce a table of values of the functions :x sqrt(x) x^4 1/(1+x^3) exp(x) x^8/factorial(8) and k(x)
where you will define k(x) in an m-file to be the smallest strictly positive whole number n such that x^(2*n)/factorial(2*n) is less than
1e-4. The x values to use are 0 0.2 0.4 0.6 and so on to 3.
Thanks!