Jan-17-2024, 10:45 PM
Hello Perfringo,
You can see in the second balloon above (repeated below) how theta is close to a ninety-digit number that I input to math.cos, but my interpreter sends back a single digit, despite my two attempts (to force a decimal). What am I missing here?
You can see in the second balloon above (repeated below) how theta is close to a ninety-digit number that I input to math.cos, but my interpreter sends back a single digit, despite my two attempts (to force a decimal). What am I missing here?
>>> theta=Decimal('1.00000000000000010105568267120302867849435113356548754381947219371795654296875E-11') >>> print(math.cos(theta)) 1.0 >>> B=Decimal(math.cos(theta)) >>> print(B) 1
Thank you!