Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Nested loop error' topicStudent Support Forum > General > Archives > "Nested loop error"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
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: ,

Subject (listing for 'Nested loop error')
Author Date Posted
Nested loop error elloa 09/28/11 09:47am
Re: Nested loop error Forum Modera... 09/28/11 12:13pm
Re: Re: Nested loop error elloa 09/28/11 2:14pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic