Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Quick Questions Thread

  1. Top | #1
    Quantum Hot Dog Kharakov's Avatar
    Join Date
    Aug 2000
    Location
    OCCaUSA
    Posts
    4,344
    Archived
    3,383
    Total Posts
    7,727
    Rep Power
    75

    Quick Questions Thread

    How many terms t of e^ia are needed for cosine(a) to be accurate to n decimal places?

    f(n,a):= # of terms t of e^ia needed for n decimal accuracy for cosine(a)

    disregarding the initial 1...

    \frac{a^{2t}}{\left( 2t\right)!}

  2. Top | #2
    Quantum Hot Dog Kharakov's Avatar
    Join Date
    Aug 2000
    Location
    OCCaUSA
    Posts
    4,344
    Archived
    3,383
    Total Posts
    7,727
    Rep Power
    75
    2) Are there an infinite amount of (non trivial) alternating infinite series in the following form, with r being a variable ratio, and a being a set sequence of numbers (like 2!,4!,6!... or 1!,3!,5!... or 1,20,120, 1200... etc.)

    \lim_{t\to\infty}  \sum (-1)^{t+1} \,\, \frac{r^t}{a_t} \,\, = \,\, \frac{r}{a_1} -\frac{r^2}{a_2} +\frac{r^3}{a_3} -\frac{r^4}{a_4} +...


    .. that have an infinite amount of zeros as r is increased, similar to sine and cosine?

  3. Top | #3
    Contributor
    Join Date
    Nov 2017
    Location
    seattle
    Posts
    5,034
    Rep Power
    13
    Quote Originally Posted by Kharakov View Post
    How many terms t of e^ia are needed for cosine(a) to be accurate to n decimal places?

    f(n,a):= # of terms t of e^ia needed for n decimal accuracy for cosine(a)

    disregarding the initial 1...

    \frac{a^{2t}}{\left( 2t\right)!}
    Do you understand complex numbers?

    You are invoking Euler's Formula. e^ix represents a single complex frequency or sin/cos wave. They are real numbers as such infinite. In engineering we convert to phasors to make math easier.

    Scroll down to trigonometry
    https://en.wikipedia.org/wiki/Euler%27s_formula

    https://en.wikipedia.org/wiki/Phasor

    I used the Taylor Series to calculate trig functions in embedded computing. I dervived the number of terms needed by calculation.

  4. Top | #4
    Quantum Hot Dog Kharakov's Avatar
    Join Date
    Aug 2000
    Location
    OCCaUSA
    Posts
    4,344
    Archived
    3,383
    Total Posts
    7,727
    Rep Power
    75
    Quote Originally Posted by steve_bank View Post
    Do you understand complex numbers?
    No.


    Ok, I might be being disingenuous. That image is generated with a form of dual (or bi) complex number, rotations, reflections, polygonal (or polyhedral?? I forget) transforms that I wrote a while back.

  5. Top | #5
    Contributor
    Join Date
    Nov 2017
    Location
    seattle
    Posts
    5,034
    Rep Power
    13
    To answer more simply the relationship between sin-cos and an a complex exponential is an identity. The transformation to complex exponentials is analogous to transforming to logarithms to perform multiplication and division.

    a*b = log(a) + log(b)

  6. Top | #6
    Quantum Hot Dog Kharakov's Avatar
    Join Date
    Aug 2000
    Location
    OCCaUSA
    Posts
    4,344
    Archived
    3,383
    Total Posts
    7,727
    Rep Power
    75
    Steve, are you fucking with me because I derail threads, or do you really think you answered any question that I asked?

    I didn't want to write a formula myself. Damnit. Fuck you guys. I'll do it.

    termspart:1-a^2/2, tp1:2,
    while floor [(cosine(a) - termspart)*10^n] >0 do [

    termspart:termspart+ (-1)^tp1*a^(2*tp1)/((2*tp1)!),
    tp1:tp1+1,
    disp ("fuck you guys")
    ],

    disp (sconcat("fuck you guys: ", tp1-1))



    easier method good enough for my purposes: calculate when 10^(n+1) *[a^(2(t+2))/(((t+2)2)!)] <5
    Last edited by Kharakov; 01-12-2019 at 09:10 PM.

  7. Top | #7
    Contributor
    Join Date
    Nov 2004
    Location
    South Carolina
    Posts
    5,293
    Archived
    14,025
    Total Posts
    19,318
    Rep Power
    61
    I paid three dollars for a six pack of Pepsi.

    If I divide by putting $3 in the numerator and 6 in the denominator, I can interpret the result of the calculation as having paid on average fifty cents per can of Pepsi.

    If I divide by putting 6 in the numerator and $3 in the denominator, I can calculate the resulting value, but I have no idea how to articulate an interpretation for my answer. Any idea?

  8. Top | #8
    Contributor
    Join Date
    Nov 2017
    Location
    seattle
    Posts
    5,034
    Rep Power
    13
    Quote Originally Posted by Kharakov View Post
    Steve, are you fucking with me because I derail threads, or do you really think you answered any question that I asked?

    I didn't want to write a formula myself. Damnit. Fuck you guys. I'll do it.
    Anyone can have a brain fart without warning. It smells bad and us=is soon forgotten.

  9. Top | #9
    Contributor
    Join Date
    Nov 2017
    Location
    seattle
    Posts
    5,034
    Rep Power
    13
    Quote Originally Posted by fast View Post
    I paid three dollars for a six pack of Pepsi.

    If I divide by putting $3 in the numerator and 6 in the denominator, I can interpret the result of the calculation as having paid on average fifty cents per can of Pepsi.

    If I divide by putting 6 in the numerator and $3 in the denominator, I can calculate the resulting value, but I have no idea how to articulate an interpretation for my answer. Any idea?
    Dimensional analysis.2 cans per dollar. 6 cans/3 dollars is 2 cans per dollar. Normalizing to a unit value is what I would call it.

    Bushels per acre. Pounds pw per square inch.

  10. Top | #10
    Contributor
    Join Date
    Nov 2004
    Location
    South Carolina
    Posts
    5,293
    Archived
    14,025
    Total Posts
    19,318
    Rep Power
    61
    Thank you

Similar Threads

  1. The dumb questions thread
    By NobleSavage in forum Natural Science
    Replies: 808
    Last Post: 12-05-2019, 01:35 AM
  2. Replies: 32
    Last Post: 06-13-2014, 09:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •