Efficient Series Computation for cosh(1.822) | Cosh^1.822 Homework Solution

  • Thread starter Thread starter lewisbedwell
  • Start date Start date
  • Tags Tags
    Series
lewisbedwell
Messages
7
Reaction score
0

Homework Statement


Use an appropriate series to compute the value of cosh(1.822)


Homework Equations


coshx=e^x/2+e^(-x)/2


The Attempt at a Solution



I follow the series 1+x+x^2/(2! )…. etc and 1-x+x^2/(2! )…. then add the answers together and divide by 2. However the answers I am coming out at is 3.11 rather than 3.17 which i get on the calculator.
Thanks so much in advance.
 
Physics news on Phys.org
how many terms have you extended it to?
 
I've gone to 14 so far. Do I just need to keep going further? Thanks a lot for replying
 
well you could compare your iterations and see if they are approaching the calculator answer and that would give you confidence that you didn't make a mistake.

you could write a program in python or whatever language you're comfortable in and show each iteration and compare to what you've done.

Calculators will go many iterations to get a result. They do it so fast its had to imagine how many they did in the short time it took. They may also use some sort of shortcut to get the result like interpolation from stored tables of values...
 
  • Like
Likes 1 person
You can use the series
\cosh x=\sum_{k=0}^{\infty} \frac{x^{2k}}{(2k)!},
which follows from your ansatz.

Of course, you can only calculate a finite partial series. You can estimate the error made by using Taylor's theorem which says
\cosh x=\sum_{k=0}^{n} \frac{x^{2k}}{(2k)!}+\frac{1}{(2n+1)!}\sinh \xi x^{2n+1},
where \xi is between 0 and x. We can thus estimate the error made, when just stopping at =k=2n by
\left | \frac{1}{(2n+1)!} \sinh \xi x^{2n+1} \right | \leq \left |\frac{1}{(2n+1)!} \sinh x x^{2n+1} \right|.
 
  • Like
Likes 1 person
Thanks so much to both of you, I think with what both of you have said I should be fine to get a decent report out of it! Thanks!
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top