Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6062 > unrolled thread
| Started by | Andrzej Kozlowski <akoz@mimuw.edu.pl> |
|---|---|
| First post | 2011-10-31 11:49 +0000 |
| Last post | 2011-10-31 11:49 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Simple question about inverse of a function Andrzej Kozlowski <akoz@mimuw.edu.pl> - 2011-10-31 11:49 +0000
| From | Andrzej Kozlowski <akoz@mimuw.edu.pl> |
|---|---|
| Date | 2011-10-31 11:49 +0000 |
| Subject | Re: Simple question about inverse of a function |
| Message-ID | <j8m202$ri8$1@smc.vnet.net> |
InverseFunction will not work for functions defined by means of patterns
and transformation rules. It works for pure functions as follows:
InverseFunction[Function[t, (1 - t)^theta]]
During evaluation of In[23]:= InverseFunction::ifun:Inverse functions
are being used. Values may be lost for multivalued inverses. >>
Function[t, 1 - t^(1/theta)]
Using Assuming is useless here (and in any case, Assuming is useless
unless used with functions such as Simplify, FullSimplify and some
others). There is no way to give a domain specification to Function,
hence there is no way to avoid the warning message (unless you choose to
turn it off).
In fact, InverseFunction simply uses Solve in such cases so it only
saves you some typing...
Andrzej Kozlowski
On 30 Oct 2011, at 10:22, Mikael wrote:
> I have a simple question on how to calculate the inverse of a a
function. This is the function I define:
>
> f[t_] := (1 - t)^theta
>
> To calculate the inverse I write:
>
> Assuming[t >= 0 && t <= 1 && theta >= 1 && theta < Infinity, {
InverseFunction[f[t]]}]
>
> but the answer I get is
>
> {InverseFunction[(1 - t)^theta]}.
>
> Now I know I can do this:
>
> In[11]:= Solve[f[g[x]]==x,g[x]]
> Out[11]= {{g[x]->1-x^(1/theta)}}
>
> but I wonder what is the correct way of specifying assumptions on t
and theta to make the InverseFunction work. Thanks.
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web