在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:JuliaDiff/DualNumbers.jl开源软件地址:https://github.com/JuliaDiff/DualNumbers.jl开源编程语言:Julia 100.0%开源软件介绍:Scope of DualNumbers.jlThe Dual numbers extend the real numbers, similar to complex numbers. They adjoin a
new element Apart from their mathematical role in algebraic and differential geometry (they are mainly interpreted as angles between lines), they also find applications in physics (the real part of a dual represents the bosonic direction, while the epsilon part represents the fermionic direction), in screw theory, in motor and spatial vector algebra, and in computer science due to its relation with the forward mode of automatic differentiation. For the purpose of forward-mode automatic differentiation, this package is superseded by ForwardDiff.
Supported functionsWe aim for complete support for The following functions are specific to dual numbers:
The dual number
For complex differentiable functions, this is equivalent to differentiation:
For functions that are not complex differentiable, the dual part returns the limit
and can be identified with a directional derivative in In some cases the mathematical definition of functions of A walk-through exampleThe example below demonstrates basic usage of dual numbers by employing them to
perform automatic differentiation. The code for this example can be found in
First install the package by using the Julia package manager:
Then make the package available via
Use the
Define a function that will be differentiated, say
Perform automatic differentiation by passing the dual number
Use the functions
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论