Group Abstract Group Abstract

Message Boards Message Boards

0
|
6.7K Views
|
8 Replies
|
9 Total Likes
View groups...
Share
Share this post:

Evaluate [omega(1) .. omega(10000)] in Wolfram|Alpha within few seconds?

8 Replies
Posted 10 years ago
POSTED BY: Bill Simpson
POSTED BY: Marco Thiel

omega is not significant here. All I want is repeating a calculation over a range of integers and get the result back in an array.

Can you show me how to do that with for example factor()? Or, if you don't know what that is either, for sin()?

You are quite right. I do not understand the issue. What is omega supposed to mean. There is no definition of it. Many people have named different functions omega. Also, what are the ".." supposed to mean? There is a built in meaning for that in MMA/WL, but it is most likely not what you mean. What do you want to express with the square brackets?

What do you want to calculate? What is the meaning of what you want to code?

Cheers,

Marco

POSTED BY: Marco Thiel

Thanks for your answer, but you don't seem to understand the issue yet it seems.

A. I first tried:

 [omega(1) .. omega(1000)]

which was fine.

B. Then I tried:

[omega(1) .. omega(10000)]

which did not return results, not even after 1 hour.

C. The I tried

[omega(1000) .. omega(2000)]

and

[omega(2000) .. omega(3000)]

etcetera, all the way up to:

 [omega(9000) .. omega(10000)]

these too were all fine and returned results within a few seconds.

So my issue is: Why the heck can't:

[omega(1) .. omega(10000)]

which is just 10 of the above executed in one go, return results in less than say 20 seconds???

I never said I tried

[omega(9000) .. omega(10000)] .. [omega(9000) .. omega(10000)]

The .. in the middle was not between ` `, but I admit that was hard to see. I've edited my original post and replaced it with the textual form.

Any thoughts?

That's what I was trying to explain. Square brackets are used in the Wolfram Language to indicate input to a function. Round brackets are not. The code that you submitted does not conform to the Syntax of the Wolfram Language - also you should post it in a code box in this forum.

Anyway, you are right I did not try your code, because it is obviously not Wolfram Language. Now just to make the obvious absolutely certain, I did type it in and it, of course, gives an error message that the code is not complete. Even a cursory look at the documentation confirms that.

Now, you said that you used WolframAlpha which interprets your input and also accepts syntactically incorrect input. The thing is that it sometimes misinterprets what your input. What I wanted to say is that your input will be difficult to interpret for it; and that also to me it is not quite clear what you want to achieve.

If output is misinterpreted it can take a long time to evaluate. I typed the full input into WolframAlpha and it does evaluate within fractions of a second.

enter image description here

I cannot imagine that this is the interpretation you mean. The shorter input also evaluates in no time at all.

enter image description here

Cheers, M.

POSTED BY: Marco Thiel

Nope, it understands it perfectly well. Did you even try [omega(1000) .. omega(2000)] for example yourself?

Then, if it would not understand, don't you think it should say that immediately instead of 'spinning' for more than an hour (that's when I gave up).

This is just playing with the system, preparing do other things on ranges of integers.

That is probably because the syntax you use is meaningless for the Wolfram Language. In fact, I am not quite sure what you want to achieve based on your input. I guess that Wolfram Alpha cannot parse this and tries something that does not work.

Best wishes,

M.

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