cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

4-Participant

## Solve

Hi  I have a problem to show my results in a table where the column will be given "t" and the rows will be "Pwf". If there's anyone who can help me, please.  In the picture I use only t_0 in the formula and I would like to use all values immediately and present the result in the matrix 4x11, help me, please

1 ACCEPTED SOLUTION

Accepted Solutions
24-Ruby V
(To:eng.gdal)

Can't debug a picture!

Problem seems to be that you like to use inline evaluations. By this I mean that you follow a definition immediately by an evaluation (=) like
x:=<calculatong term>= ...

While this is allowed it can sometime lead to unexpected and undesired results. Ist better to separate definition and evaluation:

One region: x:=<calculatong term>
and in a second region the evaluation x = ...

I guess that if you evaluate q in your sheet you would see a nice table (but with columns and rows exchanged).

Here is what I was talking about

Prime is not good in creating nice row and column headers and while its allowed to have quantities in different dimensions/units in one matrix, you are not allowed to change the units inside of the matrix and are restricted to the default units. Which means that you would see the time in seconds and not in years, etc.

Therefore in the following table I removed the units completely

Worksheet (P9) attached

6 REPLIES 6
23-Emerald III
(To:eng.gdal)

Please attach your (Prime) worksheet file. That will allow us much better to help you.

By the way. Prime 'knows' the Euler constant:

Success!
Luc

4-Participant
(To:LucMeekes)

Great advice on Euler's constant! Thank you very much. I am uploading my working file with my problem.
Sincerely, Kacper

24-Ruby V
(To:eng.gdal)

Use the last formula for q0, which, as I think, should be the first column of your table.

use a double matrix index on the left hand side

and replace on the right hand side the variable P.wf by P.wf[i (P.wf with vector index i).

Or even better, simply replace the whole expression in parentheses (P.i-P.wf) by P.i*0.1*i

Variable q should now hold the table you are asking for.

4-Participant
(To:Werner_E)

Thank you very much for your suggestions, I tried something with your proposal but the results came out as I want for all time periods but only in one column.
Greetings

24-Ruby V
(To:eng.gdal)

Can't debug a picture!

Problem seems to be that you like to use inline evaluations. By this I mean that you follow a definition immediately by an evaluation (=) like
x:=<calculatong term>= ...

While this is allowed it can sometime lead to unexpected and undesired results. Ist better to separate definition and evaluation:

One region: x:=<calculatong term>
and in a second region the evaluation x = ...

I guess that if you evaluate q in your sheet you would see a nice table (but with columns and rows exchanged).

Here is what I was talking about

Prime is not good in creating nice row and column headers and while its allowed to have quantities in different dimensions/units in one matrix, you are not allowed to change the units inside of the matrix and are restricted to the default units. Which means that you would see the time in seconds and not in years, etc.

Therefore in the following table I removed the units completely

Worksheet (P9) attached

4-Participant
(To:Werner_E)

Great solution! Thank you very much for such a comprehensive and well written solution to my problem 😁. I will definitely use it in the future, again Thank you and I'm closing the post.

Announcements
Top Tags