Skip to content

Improvement to ComplexValueTracker.set_value#4624

Open
GoThrones wants to merge 5 commits intoManimCommunity:mainfrom
GoThrones:improve-complexvaluetracker-setvalue
Open

Improvement to ComplexValueTracker.set_value#4624
GoThrones wants to merge 5 commits intoManimCommunity:mainfrom
GoThrones:improve-complexvaluetracker-setvalue

Conversation

@GoThrones
Copy link
Contributor

Presently, in the set_value method of ComplexValueTracker class, only a complex number of the form a+jb,can be passed as argument.

Overview: What does this pull request change?

This PR provides users with options to either provide a complex number, either in rectanguler coordinate system(a+jb) or in polar coordinate system(r,theta) or if the user is not providing a complex number of the form a+jb, then the following may also be accpeted: a float, int, str or a list, tuple or any Sequence of 2 numbers. When providing a complex number of the form (r, theta), theta may be in radians or degrees.

Reviewer Checklist

  • The PR title is descriptive enough for the changelog, and the PR is labeled correctly
  • If applicable: newly added non-private functions and classes have a docstring including a short summary and a PARAMETERS section
  • If applicable: newly added functions and classes are tested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant