Hacker News new | ask | show | jobs
by yequalsx 3272 days ago
Here is an interesting observation on what you wrote:

x(y) = (+/-) sqrt(y)

is not valid notation. On the left hand side you are stating that x is a function of y. But on the right hand side your usage of (+/-) indicates that y can go to two different values. Hence x is not a function of y. To be a function one must have each input going to a distinct output.

1 comments

Yep, that was on purpose somewhat. A choice of +/- will essentially make a restricted codomain, to positives say.

That means switching the variables around switched domain/codomain.

An example where they are both the same:

y(x) = x + 1 <=> x(y) = y - 1