Message Boards Message Boards

0
|
6896 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:
GROUPS:

Query not working; Please help

Posted 9 years ago

for {k = 1 to 2} , evaluate {y[[k]] = x[[k,1]]+x[[k,2]]-1.5} where {x = {{0, 0},{0, 1}}

Trying to get WA to loop through evaluation of this simple y function which is 2D in x. This is just a test for a more complex evaluation. I need to use matrix notations so I can enter it all in on one line and then get all the results at once. I am not willing to split this up in to multiple qeuries since it would take ten times longer to enter data and record results piecemeal (and there are more than a few data points to enter).

The first loop should be y1 = x(1,1) + x(1,2) + 0 = 0 + 0 + 1.5 = 1.5

etc.

Any help out there? Andrew

POSTED BY: A Poush

This is not the kind of query that Wolfram|Alpha will do.

Please see the Wolfram|Alpha example page for the kinds of things it will handle: http://www.wolframalpha.com/examples/

This is a program. To write programs, you want to use something like Mathematica online.

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

Group Abstract Group Abstract