| Author |
Comment/Response |
Forum Moderator
email me
 |
09/28/11 12:13pm
For[..] returns Null. Code like
For[..
] (* a iteration*)
cost = vx/48;
..
is probably being interpreted as
For[..] * cost = vx/48;
or
Null * 0.0 = vx/48;
where cost = 0.0 on the first iteration.
After "..] (* a iteration*)", put a semicolon.
The "Tag Times in .. is Protected" almost always means things on the left-hand side of an assignment are being multiplied.
URL: , |
|