Student Support Forum: 'Varying Parameter' topicStudent Support Forum > General > "Varying Parameter"

 < Previous Comment | Next Comment > Help | Reply To Comment | Reply To Topic
 Author Comment/Response Daniele 09/28/05 10:36am Hi. You can use Piecewise function to create what you want. For example, if you want that your parameter a is equal to 0 for 0<=t<6, and equal to 5 for t>=6, where t is indipendent variable representing time, you must write it: a[t_]:=Piecewise[{{0,0<=t<6},{5,t>=6}}] In this case, t is not in your defined domain, it assumes value 0. If you want to specify another value for the rest of the range of t, you must specify it as second argument of piecewise. For example, if you want that in the rest of reals, a is equal to 3, you must write: a[t_]:=Piecewise[{{0,0<=t<6},{5,t>=6}},3] Then use it in your equation. I hope that it can help you. Daniele URL: ,

 Subject (listing for 'Varying Parameter') Author Date Posted Varying Parameter Jane Shevtsov 09/25/05 00:48am Re: Varying Parameter Daniele 09/28/05 10:36am Re: Varying Parameter Jane Shevtsov 09/28/05 7:33pm
 < Previous Comment | Next Comment > Help | Reply To Comment | Reply To Topic