Ask your own question, for FREE!
Computer Science 17 Online
OpenStudy (anonymous):

Need help using a taylor series and while loop in MatLab

OpenStudy (anonymous):

I need to use a while loop to make sure an approximation of a^x is accurate up to six decimal places. I do not know howto check for accuracy, and orginially did this using a for loop at an arbitrary value. Here is the problem: https://drive.google.com/file/d/0B5n-r165dW8FT2pwcUU4YmlTMTQ/edit?usp=sharing

OpenStudy (anonymous):

Here is my code so far: function result = lastName5(x,a) result = 1; for k = 1:1:5 result = (((x * log(a))^k) / factorial(k))+ r; end end

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!