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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

eng.gdal
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

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

Werner_E_0-1681328910311.png

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

Werner_E_1-1681329088780.png

Worksheet (P9) attached

View solution in original post

6 REPLIES 6
LucMeekes
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:

LucMeekes_0-1681319899861.png

 

Success!
Luc

eng.gdal
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

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

Werner_E_0-1681321847540.png

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.

 

eng.gdal
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

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

Werner_E_0-1681328910311.png

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

Werner_E_1-1681329088780.png

Worksheet (P9) attached

eng.gdal
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.

Top Tags