Skip to content

add constant number with zero real and unitary du - #16

Closed
gasagna wants to merge 4 commits into
JuliaDiff:masterfrom
gasagna:patch-1
Closed

gasagna wants to merge 4 commits into
JuliaDiff:masterfrom
gasagna:patch-1

Conversation

@gasagna

@gasagna gasagna commented Apr 27, 2015

Copy link
Copy Markdown
Contributor

This is a useful addition which was missing, taken directly from complex.jl in Base.

This is a useful addition which was missing, taken directly from complex.jl in Base.
@mlubin

mlubin commented Apr 28, 2015

Copy link
Copy Markdown
Contributor

Seems like a good idea. The package isn't very consistent in using du or epsilon or ϵ. Given that named constants can't currently be deprecated (as far as I know), should we try to flesh out the name more? I'm okay with du but maybe others will have a different opinion, @Scidom @johnmyleswhite @timholy.
(Also, you should add a line export du to the PR).

@mlubin

mlubin commented Apr 28, 2015

Copy link
Copy Markdown
Contributor

Adding some uses of du in the tests would be helpful as well.

@timholy

timholy commented Apr 28, 2015

Copy link
Copy Markdown
Contributor

It seems we need one constant and one function, which can't share the same name. I don't have strong feelings about what gets chosen, but I do think the constant should match what's printed (so du seems to have a lot going for it).

@gasagna

gasagna commented May 13, 2015

Copy link
Copy Markdown
Contributor Author

I think a much better name for the constant would be \epsilon (the symbol). It is short, and neat, especially when printed out in the repl. We can still have the function named epsilon, which I think it is clearer.

I have also added few tests and an export for the constant to this pull request. Changing du to something else can be done at a later stage.

@mlubin

mlubin commented May 13, 2015

Copy link
Copy Markdown
Contributor

Could you squash the commits? Looks good to merge after that.

@gasagna

gasagna commented May 14, 2015

Copy link
Copy Markdown
Contributor Author

Can I do that online from github.com?

On 13 May 2015 at 13:59, Miles Lubin [email protected] wrote:

Could you squash the commits? Looks good to merge after that.

—
Reply to this email directly or view it on GitHub
#16 (comment)
.

@papamarkou

Copy link
Copy Markdown
Contributor

@gasagna usually the pain-free method is to simply create a new PR consisting of a single commit.

@gasagna

gasagna commented May 14, 2015

Copy link
Copy Markdown
Contributor Author

Ok, so I will close this pull request and create a new one. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants