Function Repository Resource:

DualNumberFunction

Source Notebook

A function containing definitions for various dual number functions

Contributed by: Jan Mangaldan

ResourceFunction["DualNumberFunction"]["function"]

returns the dual number function with the name "function".

Details

ResourceFunction["DualNumberFunction"] returns modularized functions.
ResourceFunction["DualNumberFunction"] is meant to be an interface used by other resource functions.

Examples

Basic Examples (2) 

Do arithmetic with dual numbers:

In[1]:=
d1 = ResourceFunction["DualNumberFunction"]["DualNumber"][2, -6]
Out[1]=
In[2]:=
d2 = ResourceFunction["DualNumberFunction"]["DualNumber"][1, -2]
Out[2]=
In[3]:=
3 + d1 - 2 d2
Out[3]=

Apply functions to dual numbers:

In[4]:=
ResourceFunction["DualNumberFunction"]["DualPart"][d1]
Out[4]=
In[5]:=
ResourceFunction["DualNumberFunction"]["DualNumberQ"][d2]
Out[5]=

Version History

  • 1.0.0 – 05 February 2021

Related Resources

License Information