Skip to content
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

Update documentation for @sym/heaviside.m #1102

Merged
merged 2 commits into from Apr 9, 2022

Conversation

chrisjohgorman
Copy link
Contributor

  • rewrote examples 2-5 in the documentation, noting new default value at
    sym(0), as well as how to override the definition at 0 for both right
    and left continuous values.
  • also noted that the function can be used on a matrix and is called for
    each element.
  • Fixes update docs for heaviside changes in SymPy 1.9 #1091

- rewrote examples 2-5 in the documentation, noting new default value at
  sym(0), as well as how to override the definition at 0 for both right
  and left continuous values.
- also noted that the function can be used on a matrix and is called for
  each element.
- Fixes gnu-octave#1091
@@ -32,34 +33,41 @@
%% @end group
%% @end example
%%
%% By default, the value at zero is undefined:
%% There are various conventions for 'heaviside(sym(0))'; this function
%% returns (sym) 1/2 by default.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should just say "returns 1/2 by default" or maybe "returns the midpoint by default:" (and let the example show it is 1/2).

Other than that, this looks ready to go1

- was '(sym) 1/2' and is now 'the midpoint'
@cbm755 cbm755 merged commit 2cd61f8 into gnu-octave:main Apr 9, 2022
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.

update docs for heaviside changes in SymPy 1.9
2 participants