Python Forum
Gmpy2 Newbie Working on Precision
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gmpy2 Newbie Working on Precision
#5
(Jan-22-2024, 03:44 AM)charlesrkiss Wrote: I went to a random calculator website: https://math.tools/calculator/trignometry/asin

From there I found similar results and created a table of the values (see image below):


I know the circle looks pretty flat (linear), when the angle is very small, but the radian numbers are just spooking me (the zeros and sixes).

On the other hand, the values in the "Degrees" column in the table do not look so bad — they change in a way that does not appear as weird. Maybe degrees are a more comforting unit to work with in this case (and they are about 60 times smaller than radians). Blush

The values look fine to me. Some

Assuming is in radian, x is between -1 and 1, then asin(x) can be approximated by x + (x**3 / 6) + (3 * x**5 / 40) + ....

Let's try it with x =0.01.

asin(0.01) = 0.01 + (0.000001/6) + (3 *0.0000000001/40)

which becomes

asin(0.01) = 0.01 + 0.000000166666666... + 0.0000000000075

or

0.010000166674166668

Sorry about the lack of formatting and terseness.
Reply


Messages In This Thread
Gmpy2 Newbie Working on Precision - by charlesrkiss - Jan-21-2024, 11:54 PM
RE: Gmpy2 Newbie Working on Precision - by casevh - Jan-23-2024, 06:51 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Precision with Decimal Type charlesrkiss 9 811 Jan-18-2024, 06:30 PM
Last Post: charlesrkiss
  Precision conversion garynewport 2 978 Oct-19-2022, 10:47 AM
Last Post: garynewport
Photo Filtering data and precision during calculations Scientifix 0 1,801 Mar-30-2021, 01:00 PM
Last Post: Scientifix
  High-Precision Board Voltage Reading from Python into PD Liam484 1 2,107 Mar-29-2021, 02:57 PM
Last Post: Marbelous
  Decimal (Global precision setting) Valentina 3 3,678 Aug-23-2019, 11:53 AM
Last Post: Valentina
  python decimal scale precision massimo_m 5 5,494 Aug-22-2019, 11:47 AM
Last Post: perfringo
  Trouble with decimal precision Cassie 4 3,174 Feb-14-2019, 08:23 PM
Last Post: Cassie
  precision error chris64 1 2,260 Nov-29-2017, 09:40 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020