Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4923 > unrolled thread
| Started by | Berthold Hamburger <b-hamburger@artinso.com> |
|---|---|
| First post | 2011-09-13 11:29 +0000 |
| Last post | 2011-09-14 09:24 +0000 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Inverse of function Berthold Hamburger <b-hamburger@artinso.com> - 2011-09-13 11:29 +0000
Re: Inverse of function Simon <simonjtyler@gmail.com> - 2011-09-14 09:20 +0000
Re: Inverse of function Berthold Hamburger <b-hamburger@artinso.com> - 2011-09-16 09:53 +0000
Re: Inverse of function "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-09-14 09:24 +0000
| From | Berthold Hamburger <b-hamburger@artinso.com> |
|---|---|
| Date | 2011-09-13 11:29 +0000 |
| Subject | Inverse of function |
| Message-ID | <j4neqn$54e$1@smc.vnet.net> |
Hi, I stumbled over a small riddle using mathematica 8. Asking for the inverse of the function f(x)= x^2, I receive the solution: f^(-1)(x) = Âħsqrt(x) Why is that so? I had rather expected an error message. Regards -- Berthold Hamburger - Cellist/Spain http://www.artinso.com | http://www.astronomy.artinso.com | http://www.artemis.artinso.com Sent from my Android Galaxy tab with Kaiten Mail.
[toc] | [next] | [standalone]
| From | Simon <simonjtyler@gmail.com> |
|---|---|
| Date | 2011-09-14 09:20 +0000 |
| Message-ID | <j4prkq$fn5$1@smc.vnet.net> |
| In reply to | #4923 |
Exactly what code did you use to get the inverse function?
In[1]:= f[x_] := x^2
In[2]:= InverseFunction[f][y]
During evaluation of In[9]:= InverseFunction::ifun: Inverse functions are being used. Values may be lost for multivalued inverses. >>
Out[2]= -Sqrt[y]
Of course, Solve, Reduce and WolframAlpha are a bit smarter than that
In[3]:= Solve[f[x] == y, x]
Out[3]= {{x -> -Sqrt[y]}, {x -> Sqrt[y]}}
In[4]:= WolframAlpha["inverse of f(x) = x^2", {{"Result", 1}, "Plaintext"}]
Out[4]= "f^(-1)(x) = \[PlusMinus]sqrt(x)"
[toc] | [prev] | [next] | [standalone]
| From | Berthold Hamburger <b-hamburger@artinso.com> |
|---|---|
| Date | 2011-09-16 09:53 +0000 |
| Message-ID | <j4v6a9$c7n$1@smc.vnet.net> |
| In reply to | #4941 |
On Wed, 14 Sep 2011 09:20:26 +0000 (UTC), Simon <simonjtyler@gmail.com> wrote: > Exactly what code did you use to get the inverse function? Hi Simon, I used the free form input in that form: "inverse function of f(x)=x^2", so I essentially used Wolfram alpha My point or rather my question was however, why Mathematica returns a solution where there should be none, as to my understanding f(x)=x^2 cannot be inverted. But then my understanding is quite limited, so please bear with me if this is just a lapse of knowledge on my part :-) Regards -- Berthold Hamburger - Cellist/Spain http://www.artinso.com | http://www.astronomy.artinso.com | http://www.artemis.artinso.com Sent from my Android Galaxy tab with Kaiten Mail.
[toc] | [prev] | [next] | [standalone]
| From | "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> |
|---|---|
| Date | 2011-09-14 09:24 +0000 |
| Message-ID | <j4prrg$fot$1@smc.vnet.net> |
| In reply to | #4923 |
On Tue, 13 Sep 2011 12:29:27 +0100, Berthold Hamburger <b-hamburger@artinso.com> wrote: > Hi, > > I stumbled over a small riddle using mathematica 8. Asking for the > inverse of the function f(x)= x^2, I receive the solution: f^(-1)(x) > = =C2=B1sqrt(x) > > Why is that so? I had rather expected an error message. > > Regards > Perhaps this is a result of the particular way in which you asked, or some assumptions inadvertently applied? In a new session, InverseFunction behaves as expected: In[1] := InverseFunction[#^2 &] During evaluation of In[1] := InverseFunction::ifun: Inverse functions are being used. Values may be lost for multivalued inverses. Out[1] = -Sqrt[#1] &
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web