Timeline for Setting a One Dimensional Function Equal to a Constant over a Specific Range
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 29, 2015 at 17:15 | comment | added | dowlguest | Thanks for the help, I found a way to get it to work. I think adding the [z_] would have worked the way I was attempting it but I ended up using a Peicewise function | |
Oct 28, 2015 at 0:05 | answer | added | Jack LaVigne | timeline score: 1 | |
Oct 26, 2015 at 22:22 | comment | added | Jack LaVigne |
Your code works for me. I believe it would be better in general to define Test[z_]:=... but your code works with no modifications.
|
|
Oct 26, 2015 at 21:05 | comment | added | dowlguest | NDSolve is producing an answer and everything else is working properly. The result I want is for Test to be equal the solution of BCr from 0<=z<ts and the rest to be equal to a constant value given by Tbl. When I use this code it evaluates without any errors but when I attempt to plot Test it shows no result. I know I got it to work at one point. I have tried many versions of this code I don't understand whats happening to the value of Test when it runs. | |
Oct 26, 2015 at 20:46 | comment | added | bbgodfrey |
Your code works for me. If it does not work for you, NDSolve may not be producing an answer. Alternatively, you may have forgotten to define one of your variables. Check for these, correct any errors, restart Mathematica, and run again. By the way, it is not good practice to begin variable names with capital letters.
|
|
Oct 26, 2015 at 18:49 | comment | added | Patrick Stevens | What do you mean by "will not work"? What output do you expect, and what do you actually get? | |
Oct 26, 2015 at 18:49 | history | edited | Patrick Stevens | CC BY-SA 3.0 |
added 14 characters in body; edited tags
|
Oct 26, 2015 at 18:34 | comment | added | MarcoB |
Look up Piecewise in the documentation.
|
|
Oct 26, 2015 at 18:11 | review | First posts | |||
Oct 26, 2015 at 18:49 | |||||
Oct 26, 2015 at 18:09 | history | asked | dowlguest | CC BY-SA 3.0 |