Skip to content

Drawing Julia sets #4382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Sep 29, 2021
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added more doctests for eval_exponential
  • Loading branch information
alexn11 authored Sep 28, 2021
commit f8d0123802ad5d0793a202a67bba42d2292665d8
4 changes: 4 additions & 0 deletions fractals/julia_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ def eval_exponential(c_parameter: complex, z_values: numpy.ndarray) -> numpy.nda
Evaluate $e^z + c$.
>>> eval_exponential(0, 0)
1.0
>>> abs(eval_exponential(1, numpy.pi*1.j)) < 1e-15
True
>>> abs(eval_exponential(1.j, 0)-1-1.j) < 1e-15
True
"""
return numpy.exp(z_values) + c_parameter

Expand Down