contact_peterson

12 Reputation

2 Badges

15 years, 117 days

MaplePrimes Activity


These are answers submitted by contact_peterson

yes it was that simple, thanks everyone for helping me out. sorry for being such an idiot.
that has solved the first argument problem, however i must still have made a mistake somewhere because it still doesnt want to plot, what am i doing wrong. > points := seq([i, rhs(f(i))], i = 0 .. 25); [0, 10.], [1, 9.048374180], [2, 8.187307531], [3, 7.408182207], [4, 6.703200460], [5, 6.065306597], [6, 5.488116361], [7, 4.965853038], [8, 4.493289641], [9, 4.065696597], [10, 3.678794412], [11, 3.328710837], [12, 3.011942119], [13, 2.725317930], [14, 2.465969639], [15, 2.231301601], [16, 2.018965180], [17, 1.826835241], [18, 1.652988882], [19, 1.495686192], [20, 1.353352832], [21, 1.224564283], [22, 1.108031584], [23, 1.002588437], [24, 0.9071795329], [25, 0.8208499862] > with(plots); > pointplot(points); Error, (in plot/options2d) unexpected options: [[3, 7.408182207], [4, 6.703200460], [5, 6.065306597], [6, 5.488116361], [7, 4.965853038], [8, 4.493289641], [9, 4.065696597], [10, 3.678794412], [11, 3.328710837], [12, 3.011942119], [13, 2.725317930], [14, 2.465969639], [15, 2.231301601], [16, 2.018965180], [17, 1.826835241], [18, 1.652988882], [19, 1.495686192], [20, 1.353352832], [21, 1.224564283], [22, 1.108031584], [23, 1.002588437], [24, .9071795329], [25, .8208499862]] >
It seems not to want to plot the values i cant tell what i have done wrong. Heres the entire document. > eq1 := diff(n(t), t)+lambda*n(t) = 0; / d \ |--- n(t)| + lambda n(t) = 0 \ dt / > eq2 := dsolve([subs(lambda = .1, eq1), n(0) = 10]); / 1 \ n(t) = 10 exp|- -- t| \ 10 / > f(i) :=evalf(eval(eq2,t=i)); i -> evalf(eval(eq2, t = i)) > result := seq([i, f(i)], i = 0 .. 25); [0, n(0) = 10.], [1, n(1) = 9.048374180], [2, n(2) = 8.187307531], [3, n(3) = 7.408182207], [4, n(4) = 6.703200460], [5, n(5) = 6.065306597], [6, n(6) = 5.488116361], [7, n(7) = 4.965853038], [8, n(8) = 4.493289641], [9, n(9) = 4.065696597], [10, n(10) = 3.678794412], [11, n(11) = 3.328710837], [12, n(12) = 3.011942119], [13, n(13) = 2.725317930], [14, n(14) = 2.465969639], [15, n(15) = 2.231301601], [16, n(16) = 2.018965180], [17, n(17) = 1.826835241], [18, n(18) = 1.652988882], [19, n(19) = 1.495686192], [20, n(20) = 1.353352832], [21, n(21) = 1.224564283], [22, n(22) = 1.108031584], [23, n(23) = 1.002588437], [24, n(24) = 0.9071795329], [25, n(25) = 0.8208499862] > with(plots); > pointplot(result); Error, (in plots/pointplot) incorrect first argument >
Page 1 of 1