Using the complex exponential function to calculate the $sin(30^{circ})$ [closed]












0












$begingroup$


I need help with the calculation of the following function
$$sin(omega t)=frac{(e^{iωt}-e^{-iωt})}{2j}implies sin(30^{circ})= sinleft(frac pi 6 right) = frac{e^{frac pi 6 i}-e^{-frac pi 6i}}{2i} $$...when I plug in the values for the function in my program code it replays $0.53dots$ But it should do $0.5000000$



Is it because the approximation with two e's and the other numbers with commas divided by $2$ include an such a high error in it(the numbers are not ending) so that i would have to use a Taylor polynomial (it is the aim to use function that can be written as only + and - for schemas. Functions with a sine in it are too abstract and not allowed) for calculating the sine without precalculated values like in a cordic function.



Ps. Please do not write it as Taylor polynomial or cordic.










share|cite|improve this question











$endgroup$



closed as unclear what you're asking by Did, Lord Shark the Unknown, Cesareo, metamorphy, José Carlos Santos Jan 14 at 10:11


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • 1




    $begingroup$
    It may well be that your calculator is doing degrees instead of radians, or the other way around. You must define this with the MODE key on the calculator.
    $endgroup$
    – DonAntonio
    Jan 13 at 17:20










  • $begingroup$
    Welcome to Mathematics Stack Exchange community! The quick tour will help you get the most benefit from your time here. Also, please use MathJax for your equations.
    $endgroup$
    – dantopa
    Jan 13 at 17:31






  • 2




    $begingroup$
    Note that $30^circ = 30times pi/180 = pi/6$ radians. Therefore, $sin(30^circ) = frac{e^{ipi/6}-e^{-ipi/6}}{2i}$.
    $endgroup$
    – Math Lover
    Jan 13 at 17:47










  • $begingroup$
    I did like this(it was programmed in python and js)....when i put more 0s to i it approximated to 0.5??(from 0.53 to 0.52)...??
    $endgroup$
    – Wolfgang Espada
    Jan 13 at 17:52










  • $begingroup$
    maybe you want to post your script on a programming site instead? this is mainly for mathematics.
    $endgroup$
    – Wesley Strik
    Jan 13 at 18:02
















0












$begingroup$


I need help with the calculation of the following function
$$sin(omega t)=frac{(e^{iωt}-e^{-iωt})}{2j}implies sin(30^{circ})= sinleft(frac pi 6 right) = frac{e^{frac pi 6 i}-e^{-frac pi 6i}}{2i} $$...when I plug in the values for the function in my program code it replays $0.53dots$ But it should do $0.5000000$



Is it because the approximation with two e's and the other numbers with commas divided by $2$ include an such a high error in it(the numbers are not ending) so that i would have to use a Taylor polynomial (it is the aim to use function that can be written as only + and - for schemas. Functions with a sine in it are too abstract and not allowed) for calculating the sine without precalculated values like in a cordic function.



Ps. Please do not write it as Taylor polynomial or cordic.










share|cite|improve this question











$endgroup$



closed as unclear what you're asking by Did, Lord Shark the Unknown, Cesareo, metamorphy, José Carlos Santos Jan 14 at 10:11


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • 1




    $begingroup$
    It may well be that your calculator is doing degrees instead of radians, or the other way around. You must define this with the MODE key on the calculator.
    $endgroup$
    – DonAntonio
    Jan 13 at 17:20










  • $begingroup$
    Welcome to Mathematics Stack Exchange community! The quick tour will help you get the most benefit from your time here. Also, please use MathJax for your equations.
    $endgroup$
    – dantopa
    Jan 13 at 17:31






  • 2




    $begingroup$
    Note that $30^circ = 30times pi/180 = pi/6$ radians. Therefore, $sin(30^circ) = frac{e^{ipi/6}-e^{-ipi/6}}{2i}$.
    $endgroup$
    – Math Lover
    Jan 13 at 17:47










  • $begingroup$
    I did like this(it was programmed in python and js)....when i put more 0s to i it approximated to 0.5??(from 0.53 to 0.52)...??
    $endgroup$
    – Wolfgang Espada
    Jan 13 at 17:52










  • $begingroup$
    maybe you want to post your script on a programming site instead? this is mainly for mathematics.
    $endgroup$
    – Wesley Strik
    Jan 13 at 18:02














0












0








0





$begingroup$


I need help with the calculation of the following function
$$sin(omega t)=frac{(e^{iωt}-e^{-iωt})}{2j}implies sin(30^{circ})= sinleft(frac pi 6 right) = frac{e^{frac pi 6 i}-e^{-frac pi 6i}}{2i} $$...when I plug in the values for the function in my program code it replays $0.53dots$ But it should do $0.5000000$



Is it because the approximation with two e's and the other numbers with commas divided by $2$ include an such a high error in it(the numbers are not ending) so that i would have to use a Taylor polynomial (it is the aim to use function that can be written as only + and - for schemas. Functions with a sine in it are too abstract and not allowed) for calculating the sine without precalculated values like in a cordic function.



Ps. Please do not write it as Taylor polynomial or cordic.










share|cite|improve this question











$endgroup$




I need help with the calculation of the following function
$$sin(omega t)=frac{(e^{iωt}-e^{-iωt})}{2j}implies sin(30^{circ})= sinleft(frac pi 6 right) = frac{e^{frac pi 6 i}-e^{-frac pi 6i}}{2i} $$...when I plug in the values for the function in my program code it replays $0.53dots$ But it should do $0.5000000$



Is it because the approximation with two e's and the other numbers with commas divided by $2$ include an such a high error in it(the numbers are not ending) so that i would have to use a Taylor polynomial (it is the aim to use function that can be written as only + and - for schemas. Functions with a sine in it are too abstract and not allowed) for calculating the sine without precalculated values like in a cordic function.



Ps. Please do not write it as Taylor polynomial or cordic.







complex-numbers approximation






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 13 at 23:22









user376343

3,9584829




3,9584829










asked Jan 13 at 17:18









Wolfgang EspadaWolfgang Espada

41




41




closed as unclear what you're asking by Did, Lord Shark the Unknown, Cesareo, metamorphy, José Carlos Santos Jan 14 at 10:11


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









closed as unclear what you're asking by Did, Lord Shark the Unknown, Cesareo, metamorphy, José Carlos Santos Jan 14 at 10:11


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 1




    $begingroup$
    It may well be that your calculator is doing degrees instead of radians, or the other way around. You must define this with the MODE key on the calculator.
    $endgroup$
    – DonAntonio
    Jan 13 at 17:20










  • $begingroup$
    Welcome to Mathematics Stack Exchange community! The quick tour will help you get the most benefit from your time here. Also, please use MathJax for your equations.
    $endgroup$
    – dantopa
    Jan 13 at 17:31






  • 2




    $begingroup$
    Note that $30^circ = 30times pi/180 = pi/6$ radians. Therefore, $sin(30^circ) = frac{e^{ipi/6}-e^{-ipi/6}}{2i}$.
    $endgroup$
    – Math Lover
    Jan 13 at 17:47










  • $begingroup$
    I did like this(it was programmed in python and js)....when i put more 0s to i it approximated to 0.5??(from 0.53 to 0.52)...??
    $endgroup$
    – Wolfgang Espada
    Jan 13 at 17:52










  • $begingroup$
    maybe you want to post your script on a programming site instead? this is mainly for mathematics.
    $endgroup$
    – Wesley Strik
    Jan 13 at 18:02














  • 1




    $begingroup$
    It may well be that your calculator is doing degrees instead of radians, or the other way around. You must define this with the MODE key on the calculator.
    $endgroup$
    – DonAntonio
    Jan 13 at 17:20










  • $begingroup$
    Welcome to Mathematics Stack Exchange community! The quick tour will help you get the most benefit from your time here. Also, please use MathJax for your equations.
    $endgroup$
    – dantopa
    Jan 13 at 17:31






  • 2




    $begingroup$
    Note that $30^circ = 30times pi/180 = pi/6$ radians. Therefore, $sin(30^circ) = frac{e^{ipi/6}-e^{-ipi/6}}{2i}$.
    $endgroup$
    – Math Lover
    Jan 13 at 17:47










  • $begingroup$
    I did like this(it was programmed in python and js)....when i put more 0s to i it approximated to 0.5??(from 0.53 to 0.52)...??
    $endgroup$
    – Wolfgang Espada
    Jan 13 at 17:52










  • $begingroup$
    maybe you want to post your script on a programming site instead? this is mainly for mathematics.
    $endgroup$
    – Wesley Strik
    Jan 13 at 18:02








1




1




$begingroup$
It may well be that your calculator is doing degrees instead of radians, or the other way around. You must define this with the MODE key on the calculator.
$endgroup$
– DonAntonio
Jan 13 at 17:20




$begingroup$
It may well be that your calculator is doing degrees instead of radians, or the other way around. You must define this with the MODE key on the calculator.
$endgroup$
– DonAntonio
Jan 13 at 17:20












$begingroup$
Welcome to Mathematics Stack Exchange community! The quick tour will help you get the most benefit from your time here. Also, please use MathJax for your equations.
$endgroup$
– dantopa
Jan 13 at 17:31




$begingroup$
Welcome to Mathematics Stack Exchange community! The quick tour will help you get the most benefit from your time here. Also, please use MathJax for your equations.
$endgroup$
– dantopa
Jan 13 at 17:31




2




2




$begingroup$
Note that $30^circ = 30times pi/180 = pi/6$ radians. Therefore, $sin(30^circ) = frac{e^{ipi/6}-e^{-ipi/6}}{2i}$.
$endgroup$
– Math Lover
Jan 13 at 17:47




$begingroup$
Note that $30^circ = 30times pi/180 = pi/6$ radians. Therefore, $sin(30^circ) = frac{e^{ipi/6}-e^{-ipi/6}}{2i}$.
$endgroup$
– Math Lover
Jan 13 at 17:47












$begingroup$
I did like this(it was programmed in python and js)....when i put more 0s to i it approximated to 0.5??(from 0.53 to 0.52)...??
$endgroup$
– Wolfgang Espada
Jan 13 at 17:52




$begingroup$
I did like this(it was programmed in python and js)....when i put more 0s to i it approximated to 0.5??(from 0.53 to 0.52)...??
$endgroup$
– Wolfgang Espada
Jan 13 at 17:52












$begingroup$
maybe you want to post your script on a programming site instead? this is mainly for mathematics.
$endgroup$
– Wesley Strik
Jan 13 at 18:02




$begingroup$
maybe you want to post your script on a programming site instead? this is mainly for mathematics.
$endgroup$
– Wesley Strik
Jan 13 at 18:02










1 Answer
1






active

oldest

votes


















1












$begingroup$

$sin(30^circ) = sin frac{pi}{6}$. So in your formula, use $omega t = frac{pi}{6}$.



begin{align}
e^{jpi/6} &approx 0.8660254040+j ;0.5000000000
\
e^{-jpi/6} &approx 0.8660254040-j ;0.5000000000
\
frac{e^{jpi/6}-e^{-jpi/6}}{2j} &approx 0.5000000000
end{align}






share|cite|improve this answer









$endgroup$




















    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1












    $begingroup$

    $sin(30^circ) = sin frac{pi}{6}$. So in your formula, use $omega t = frac{pi}{6}$.



    begin{align}
    e^{jpi/6} &approx 0.8660254040+j ;0.5000000000
    \
    e^{-jpi/6} &approx 0.8660254040-j ;0.5000000000
    \
    frac{e^{jpi/6}-e^{-jpi/6}}{2j} &approx 0.5000000000
    end{align}






    share|cite|improve this answer









    $endgroup$


















      1












      $begingroup$

      $sin(30^circ) = sin frac{pi}{6}$. So in your formula, use $omega t = frac{pi}{6}$.



      begin{align}
      e^{jpi/6} &approx 0.8660254040+j ;0.5000000000
      \
      e^{-jpi/6} &approx 0.8660254040-j ;0.5000000000
      \
      frac{e^{jpi/6}-e^{-jpi/6}}{2j} &approx 0.5000000000
      end{align}






      share|cite|improve this answer









      $endgroup$
















        1












        1








        1





        $begingroup$

        $sin(30^circ) = sin frac{pi}{6}$. So in your formula, use $omega t = frac{pi}{6}$.



        begin{align}
        e^{jpi/6} &approx 0.8660254040+j ;0.5000000000
        \
        e^{-jpi/6} &approx 0.8660254040-j ;0.5000000000
        \
        frac{e^{jpi/6}-e^{-jpi/6}}{2j} &approx 0.5000000000
        end{align}






        share|cite|improve this answer









        $endgroup$



        $sin(30^circ) = sin frac{pi}{6}$. So in your formula, use $omega t = frac{pi}{6}$.



        begin{align}
        e^{jpi/6} &approx 0.8660254040+j ;0.5000000000
        \
        e^{-jpi/6} &approx 0.8660254040-j ;0.5000000000
        \
        frac{e^{jpi/6}-e^{-jpi/6}}{2j} &approx 0.5000000000
        end{align}







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jan 13 at 17:50









        GEdgarGEdgar

        63k267171




        63k267171















            Popular posts from this blog

            Human spaceflight

            Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

            File:DeusFollowingSea.jpg