All Questions
Tagged with numerical-methods python
5
questions
46
votes
8answers
9k views
4
votes
1answer
360 views
Calculate the Euler-Mascheroni constant without the math module
The below code was written to generate γ, for educational purposes.
Single threaded, no functional zeroes required, no binary splitting(which can all be used to compute competitively like y-cruncher, ...
7
votes
3answers
3k views
pure Python Bézier curve implementation
I came up with this recursive pure-Python implementation of De Casteljau's algorithm for computing points on a Bézier curve:
...
10
votes
1answer
1k views
Generate iCalendar .ics files with events for astrological aspects
I'm relatively new to Python, coming from a deep C++ background. I'm mostly looking for feedback on how to make my code more idiomatic/pythonic, but I would welcome and appreciate any and all other ...
1
vote
1answer
51 views
Euler-Mascheroni Single Thread Speed Improvements
The below code was written to generate γ, for educational purposes.
My general methodology is as follows:
Compute Gamma via the accepted answer's algorithm here.
In order to do this I need to ...