JuliaDiff / DualNumbers.jl

Julia package for representing dual numbers and for performing dual algebra
Other
80 stars 30 forks source link

Printing method calls "other" component `du`, but its accessed through `epsilon` #24

Closed IainNZ closed 6 years ago

IainNZ commented 9 years ago

So is the other component the dual component, or the epsilon component?

mlubin commented 9 years ago

Yes

IainNZ commented 9 years ago

LOL

mlubin commented 9 years ago

I guess following https://github.com/JuliaDiff/DualNumbers.jl/pull/16, du is like im and epsilon is like imag.

IainNZ commented 9 years ago

It looks kinda weird IMO, because the overall thing is a dual number, yet, here is this du thing.

mlubin commented 9 years ago

That's a good point. @jrevels

jrevels commented 9 years ago

Is it reasonable to assume that folks' terminals will generally support Unicode? It wouldn't be too difficult to change it from du to ϵ.

IainNZ commented 9 years ago

\varepsilon might be better. Certainly OSX/Linux should.

IainNZ commented 9 years ago

I lost track of what windows supports, technically all of unicode but maybe not by default? I think this: https://en.wikipedia.org/wiki/Code_page_850 might be default for Win 7 and earlier? @tkelman do you know?

tkelman commented 9 years ago

It can depend on your font settings and which terminal you run Julia under, but at least on win7 \varepsilon shows up okay for me in the default REPL. I forget whether my font settings would have changed what works or doesn't under cmd.

ararslan commented 6 years ago

This has since been changed.