(12C) SIN COS TAN
|
12-23-2023, 03:30 PM
(This post was last modified: 12-23-2023 06:36 PM by Albert Chan.)
Post: #5
|
|||
|
|||
RE: (12C) SIN COS TAN
sin(x) = x - x^3/3! + x^5/5! - x^7/7! + ... = x * (1 - x²/6 / (1 + x²/20)) + O(x^7)
\(\displaystyle s(x) = x \left( 1-\frac{20}{6}\left(\frac{\frac{x^2}{20}}{1+\frac{x^2}{20}} \right) \right) = \frac{x}{3} \left( 3-10\left(1 - \frac{1}{1+\frac{x^2}{20}} \right) \right) = \frac{x}{3} \left(-7 + \frac{10}{1+\frac{x^{2}}{20}}\right) \) cos(x) = 1 - x^2/2! + x^4/4! - x^6/6! + ... = 1 - x²/2 * (1 - x²/12 / (1 + x²/30)) + O(x^8) \(\displaystyle c(x) = 1 - \frac{x^2}{2} \left(1 - \frac{30}{12} \left(\frac{\frac{x^2}{30}}{1+\frac{x^2}{30}} \right)\right) = 1 - \frac{x^2}{4} \left(2 - 5 \left(1 - \frac{1}{1+\frac{x^2}{30}} \right)\right) = 1 - \frac{x^2}{4} \left(-3 + \frac{5}{1+\frac{x^2}{30}} \right) \) We may also reuse code: versin(x) = 1 - cos(x) = 2*sin(x/2)^2 \(\cos(x) ≈ 1 - 2\, s(\frac{x}{2})^2 \) |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(12C) SIN COS TAN - Gamo - 12-23-2023, 05:24 AM
RE: (12C) SIN COS TAN - Gamo - 12-23-2023, 10:01 AM
RE: (12C) SIN COS TAN - Thomas Klemm - 12-23-2023, 12:00 PM
RE: (12C) SIN COS TAN - Albert Chan - 12-23-2023 03:30 PM
RE: (12C) SIN COS TAN - Thomas Klemm - 12-23-2023, 02:21 PM
RE: (12C) SIN COS TAN - Thomas Klemm - 12-23-2023, 05:54 PM
RE: (12C) SIN COS TAN - Gamo - 06-09-2024, 07:29 AM
|
User(s) browsing this thread: 1 Guest(s)