Lobotomy is
Offline:
Posts: 5
|
Re: Mathematica calculator
I've added this into at the top, just below Manipulate in the code:
L1 = Table[(#1*((1 + (#2/#3))^(#3*x) - 1))/(#2/#3) &[a, g, f, x], {x,
0, n}]
L2 = Table[x, {x, 0, n}]
ListLinePlot[{L1, L2}, DataRange -> {0, n},
I think im on the way to the right solution but it doesn't really work... this is my entire code:
Manipulate[
L1 = Table[(#1*((1 + (#2/#3))^(#3*x) - 1))/(#2/#3) &[a, g, f, x], {x,
0, n}]
L2 = Table[x, {x, 0, n}]
ListLinePlot[{L1, L2}, DataRange -> {0, n},
GridLines -> Automatic,
Delimiter,
{{f, 12, "Frequency of contributions"}, {1 -> "Annually",
1/4 -> "Quarterly", 1/12 -> "Monthly"}},
Delimiter,
{{d, 5000, "Initial Deposit"}, 0, 10000000, 1000,
Appearance -> {"Open", "Labeled"}},
{{a, 100, "Added Contributions"}, -500000, 500000, 1000,
Appearance -> {"Open", "Labeled"}},
{{g, 0.05, "Growth(%/100)"}, 0, 1, 0.05,
Appearance -> {"Open", "Labeled"}},
{{n, 5, "Years"}, 1, 100, 1, Appearance -> {"Open", "Labeled"}},
ControlPlacement -> Left]
|