MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Simple question about inverse of a function


> 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
> 

Many thanks to Albert and Simon for explaining the problem.



  • Prev by Date: Re: Export Spoken Sound (Speak-> .wav file?)
  • Next by Date: Question: 2 z-Axis scales in Plot3D?
  • Previous by thread: Re: Simple question about inverse of a function
  • Next by thread: Re: Simple question about inverse of a function