#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Privacy
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
programming techniques
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
software development
W is for walrus operator - Python A to Z
Juha-Matti Santala ·
Aug 26, 2026
Python
software development
An Advanced Guide to Python f-strings (Beyond the Basics)
Ahmed Nabil ·
Jun 3, 2026
Python Basics
Best Practices
Computing sine and cosine of complex arguments with only real functions
John Cook ·
Mar 27, 2026
Math
Complex Analysis
Unpacking with * and **: How to Call Functions with Lists and Dictionaries
Ahmed Nabil ·
Mar 2, 2026
Python Basics
args
How to Implement the Observer Pattern in Python
freeCodeCamp.org ·
Feb 18, 2026
Python
Design Patterns
Discover more posts →
AUTHOR
Advertise
Sponsor diff.blog
Put your product in front of developers who read and write about their craft. One exclusive sponsor at a time.
Become a sponsor →
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google
By continuing, you agree to our
Privacy Policy
.