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

3-Visitor

## How to create a matrix from a defined function

I have defined a function to find the slope of a circular plate with a hole as a function of the radius.  I want to find the minimum slope which occurs somewhere between the inside and outside radius.  I can only use the max() function if the results are in a matrix.  The defined function is not considered a matrix in Prime.  I was going to use the WRITEPRN function (and read the values back in) but when I do that, only the last value is printed in the PRN file.  Attached is the worksheet.  Any ideas on what I'm doing wrong?

1 ACCEPTED SOLUTION

Accepted Solutions
24-Ruby V
(To:jpeck)

I would suggest that you use the zero of the derivative to get the desired value. You can use a solve block with find or the "root" function:

The problem in your sheet was that r is defined as a range and not as a vector. That way theta(r) IS NOT a vector (but rather some kind of iteration.

Here is a way to achieve what you tried to accomplish:

Prime 6 worksheet attached

2 REPLIES 2
24-Ruby V
(To:jpeck)

I would suggest that you use the zero of the derivative to get the desired value. You can use a solve block with find or the "root" function:

The problem in your sheet was that r is defined as a range and not as a vector. That way theta(r) IS NOT a vector (but rather some kind of iteration.

Here is a way to achieve what you tried to accomplish:

Prime 6 worksheet attached

3-Visitor
(To:Werner_E)

Big thanks Werner, that helps a bunch. 😁

Announcements