Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Truncate negative numbers in the result of subtraction
ResourceFunction["Monus"][x,y] is equivalent to x-y, but gives zero if the result would be negative. |
Subtract two numbers:
In[1]:= | ![]() |
Out[1]= | ![]() |
In[2]:= | ![]() |
Out[2]= | ![]() |
Subtract symbolic values and substitute numbers:
In[3]:= | ![]() |
Out[3]= | ![]() |
In[4]:= | ![]() |
Out[4]= | ![]() |
In[5]:= | ![]() |
Out[5]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License