Who knew this all this time and didn’t tell me?
The article:
Having trouble with the Python code in the attached: it works up to p(6). At p(7) the program breaks because the int from fact(7) is too large to convert to a float (it returns inf).
Workaround?
Killing time,
John
Regards,
John
On Nov 17, 2023, at 4:08 AM, John Hanna <johne...@gmail.com> wrote:
Who knew this all this time and didn’t tell me?
<image002.jpg>
The article:
Having trouble with the Python code in the attached: it works up to p(6). At p(7) the program breaks because the int from fact(7) is too large to convert to a float (it returns inf).
Workaround?
Killing time,
John
Regards,
John
--
--
To post to this group, send email to tins...@googlegroups.com
To unsubscribe send email to tinspire+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com.au/group/tinspire?hl=en-GB?hl=en-GB
The tns documents shared by group members are archived at
https://sites.google.com/site/tinspiregroup/classroom-news/welcome-abouttime
---
You received this message because you are subscribed to the Google Groups "tinspire" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tinspire+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tinspire/014001da194e%24bd7732a0%24386597e0%24%40gmail.com.
<prime formula.tns>
I need a bigfloat!
And it’s not 7!, it’s 171! (and higher) that appears when computing p(7).
Regards,
John
To view this discussion on the web visit https://groups.google.com/d/msgid/tinspire/1955512F-A34D-4C56-935C-DCDAFD0732E5%40duetsoftware.ca.