Group Abstract Group Abstract

Message Boards Message Boards

1
|
5.6K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

Avoid issue with iterator error bounds in Wolfram Cloud?

Posted 7 years ago

Hello, I've written a program in Mathematica which asks the user (so Input) the values of n,a,b,c; these are stored. The program runs fine in Mathematica but it doesn't work when I upload it to the Cloud.

Then I define the following two lines:

l[t_]:=(-a*t - 100*c + 7000)/b; 

g=Table[Table[{q,y},{y,Ceiling[(7000-a*n-b*q)/c],100}],{q,Ceiling[l[n]],100}];

Note that a,b,c and n are defined so the indices are numeric.

However, the cloud's output is:

Table:Iterator{q,Ceiling[(1/30)(7000-119Null)],100} does not have appropriate bounds.

How can I correct this? I have no problem in Mathematica, just when executing online from the Cloud.

POSTED BY: D M
2 Replies
Posted 7 years ago

Hi Daniel, thanks for your reply. I indeed wrote a*t.

Any other idea?

POSTED BY: D M

Might be because at for example, is a symbol and not the same thing as a*t (or a t, note the space for implied multiplication). Also some variable assignment might have gone awry (giving rise to the Null).

POSTED BY: Daniel Lichtblau
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard