Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6086

Re: Simple question about inverse of a function

From A Retey <awnl@gmx-topmail.de>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Simple question about inverse of a function
Date 2011-11-01 05:00 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j8nue8$ea8$1@smc.vnet.net> (permalink)
References <j8j5ci$f6v$1@smc.vnet.net>

Show all headers | View raw


Hi,

> 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.
>
It has nothing to do with the assumptions, you just should not specify 
the argument. This will do what you want:

finv = InverseFunction[f]

it will warn about multivalued inverses, and I don't think you can avoid 
that warning with appropriate assumptions for theta in that case. Of 
course you can use Quiet to suppress it, but then you should be sure 
that everything is alright for your use cases...

hth,

albert

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Simple question about inverse of a function Mikael <mikaen.anderson.1969@gmail.com> - 2011-10-30 09:28 +0000
  Re: Simple question about inverse of a function Simon <simonjtyler@gmail.com> - 2011-10-31 12:00 +0000
  Re: Simple question about inverse of a function A Retey <awnl@gmx-topmail.de> - 2011-11-01 05:00 +0000

csiph-web