#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Sign up
The home for great developer writing.
We surface the best developer writing from thousands of independent blogs, updated daily.
Join Diff.blog
TOPICS
cos(200!)
·
John Cook
·
Aug. 7, 2026, 1:50 p.m.
Computing
Python
Math Library
Large Numbers
Computation
Summary
This post discusses the limitations of Python's math library in calculating the cosine of extremely large numbers, specifically using the example of 200!. It serves as a follow-up to a previous discussion on logarithmic calculations in Python.
Read full post on www.johndcook.com →
MORE POSTS LIKE THIS
Making a Python interpreter in 1024 bytes
AZHenley ·
Sep 6, 2026
Python
interpreters
W is for walrus operator - Python A to Z
Juha-Matti Santala ·
Aug 26, 2026
Python
programming techniques
An Advanced Guide to Python f-strings (Beyond the Basics)
Ahmed Nabil ·
Jun 3, 2026
Intermediate
Best Practices
Computing sine and cosine of complex arguments with only real functions
John Cook ·
Mar 27, 2026
Python
Math
Unpacking with * and **: How to Call Functions with Lists and Dictionaries
Ahmed Nabil ·
Mar 2, 2026
Intermediate
functions
How to Implement the Observer Pattern in Python
freeCodeCamp.org ·
Feb 18, 2026
Python
Design Patterns
Discover more posts →
AUTHOR
Sponsored
Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google