Group Abstract Group Abstract

Message Boards Message Boards

0
|
5K Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Problem plotting various functions at the same time.

Good afternoon everybody; I am currently working on the decay of a radiactive decay chain; I have to plot the activities of all the members of the chain using Bateman's equations; I will only use two to keep it simple. When I plot each of them on their own, the program works fine

Plot[2.71*10^15*0.000003*Exp[-0.000003*t], {t, 0, 6000}]

Plot[2.71*10^15*0.00538*0.00003*((Exp[-0.000001*t]/(0.00538 - 0.00001)) + (Exp[-0.00538*t]/((0.000001 - 0.00538)))), {t, 0,600}]

But when I try to plot both of them at the same time, theprogram doesn't plot anything.

Plot[{2.71*10^15*0.000003*Exp[-0.000003*t], 
  2.71*10^15*0.00538*0.00003*((Exp[-0.000001*t]/(0.00538 -0.00001)) + (Exp[-0.00538*t]/((0.000001 - 0.00538))))}, {x, 0, 6000}]

Has anyone had a similar problem or knows how to help me? All ideas are welcome. Thanks for reading.

2 Replies

Thank you very much for your help; it runs smoothly now.

You can't plot f[t] and give it x range. Try changing {x, 0, 6000} to use t instead. Also, you should define small functions for these long expressions instead of copying and pasting them all the time, else you'll make errors. As in:

f1[t_] := 2.7110^150.000003 Exp[-0.000003 t];
f2[t_] := 2.7110^150.005380 .00003 ((Exp[-0.000001 t]/(0.00538 - 
         0.00001)) + (Exp[-0.00538 t]/((0.000001 - 0.00538))));
Plot[f1[t] + f2[t], {t, 0, 6000}]
POSTED BY: Nasser M. Abbasi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard