| … | |
… | |
| 53 | |
53 | |
| 54 | $taylorcos = "1-x^2/2+x^4/24" ; |
54 | $taylorcos = "1-x^2/2+x^4/24" ; |
| 55 | $taylorsin = "x - x^3/6 + x^5/120"; |
55 | $taylorsin = "x - x^3/6 + x^5/120"; |
| 56 | $taylore = "1 + x + x^2/2 + x^3/6 + x^4/24 + x^5/120"; |
56 | $taylore = "1 + x + x^2/2 + x^3/6 + x^4/24 + x^5/120"; |
| 57 | |
57 | |
| 58 | ANS(fun_cmp($taylorcos)); |
58 | ANS(fun_cmp($taylorcos, limits=>[5,6])); |
| 59 | ANS(fun_cmp($taylorsin)); |
59 | ANS(fun_cmp($taylorsin, limits=>[5,6])); |
| 60 | ANS(fun_cmp($taylore)); |
60 | ANS(fun_cmp($taylore, limits=>[5,6])); |
| 61 | |
61 | |
| 62 | ENDDOCUMENT(); |
62 | ENDDOCUMENT(); |