Giter Site home page Giter Site logo

Comments (10)

jwmerrill avatar jwmerrill commented on June 20, 2024

epsilon is the one I like the best from my list.

from dualnumbers.jl.

papamarkou avatar papamarkou commented on June 20, 2024

I agree with the choice of epsilon, it seems a better name indeed. I made the relevant change, so I will now close this issue.

from dualnumbers.jl.

johnmyleswhite avatar johnmyleswhite commented on June 20, 2024

Further to this: is conj standard terminology for using dual numbers?

from dualnumbers.jl.

papamarkou avatar papamarkou commented on June 20, 2024

conj may cause some confusion considering that it brings in mind complex conjugate, but if it is standard terminology for dual numbers, then it won't be confusing to users. To me dual sounds a bit more traditional, but I am not sure which one is better. Do you suggest that we change dual to conj?

from dualnumbers.jl.

mlubin avatar mlubin commented on June 20, 2024

I'm a bit confused about conj, abs, abs2, and inv. One should be able to drop in a Dual number into any function that takes a number and have it compute the derivative. Most use cases of dual numbers will be in user functions that don't know what dual numbers are, so the specialized meaning of conj, abs, etc., doesn't seem right.

Consider two different cases:
f(x) = abs(x)
Here to properly compute the derivative of f we want abs(x) = (real(x) >= 0.0) ? x : -x (returns a Dual)
f(x) = abs(x) < 1.0 ? 2x : -x
Here we want the result of abs to be comparable with a float.

Probably the right solution is to have abs return a Dual and implement comparison operators for Dual with Number that compares the real term of the Dual.

from dualnumbers.jl.

johnmyleswhite avatar johnmyleswhite commented on June 20, 2024

I agree with Miles: every generic function should mean the same thing for Dual Numbers as for real numbers.

from dualnumbers.jl.

papamarkou avatar papamarkou commented on June 20, 2024

I agree too with Miles' suggestion, John.

from dualnumbers.jl.

mlubin avatar mlubin commented on June 20, 2024

I'll set up a pull request.

from dualnumbers.jl.

goretkin avatar goretkin commented on June 20, 2024

The readme still talks about the "imaginary" part of Duals

while the imaginary part represents the fermionic direction

from dualnumbers.jl.

mlubin avatar mlubin commented on June 20, 2024

Updated, thanks @goretkin!

from dualnumbers.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.