MathGroup Archive 2004

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

Search the Archive

FindRoot complains under version 5.0

  • To: mathgroup at smc.vnet.net
  • Subject: [mg46127] FindRoot complains under version 5.0
  • From: Sebastian Kubis <seb at z4seb.ifj.edu.pl>
  • Date: Sat, 7 Feb 2004 04:02:09 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

under version 4.1 I was used to nest FindRoot in another one in the
following way:

In[1]:= arcsin[y_] := x /. FindRoot[Sin[x] == y, {x, .3, .4}]

In[2]:= sin[a_] := z /. FindRoot[arcsin[z] == a, {z, 0, .5}]

but now, under ver 5.0 it reports error, although finally
gets the correct result:

In[3]:= sin[30 Degree]

FindRoot::nlnum:
   The function value {0.29552 - 1. z}
   is not a list of numbers with dimensions {1} at {x} ={0.3}.

ReplaceAll::reps:
   {FindRoot[Sin[x] == z, {x, 0.3, 0.4}]}
    is neither a list of replacement rules nor a valid dispatch table, and so
    cannot be used for replacing.

Out[3]= 0.5

What has changed in ver 5.0 ? How to avoid these "warnings"

thanks

Seb.



  • Prev by Date: Re: time serie -> sum inside a loop
  • Next by Date: FindRoot complains under version 5.0
  • Previous by thread: Re: Mathematical Statistics
  • Next by thread: Re: FindRoot complains under version 5.0