Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

small problem.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg12852] small problem.
  • From: phpcp <phpcp at csv.warwick.ac.uk>
  • Date: Wed, 17 Jun 1998 00:27:55 -0400
  • Organization: University of Warwick, UK
  • Sender: owner-wri-mathgroup at wolfram.com

Hi!

I want to choose a definition of a function by the vlaues of its
argument. So I can use :

a0[t_] := t^2 - t^3/5./;t<0.001;a0[t_] := t^2/;t>=0.001

This works fine. But if the function definition (or form or whatever) is
a bit more complicated as follows :

solution = Solve[s0^4 + s0 t + 1 == 0,s0]; chi0[x_] :=
x/;x<0.01;chi0[x_] := (solution[[3,1,2]]/.t -> x)/;x>=0.01

It doesnt work. Any ideas?

thanks in advance,
Sanjay.



  • Prev by Date: NDSolve
  • Next by Date: Adding Menu Items to Front End
  • Previous by thread: Re: NDSolve
  • Next by thread: Re: small problem.