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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

"This array index is invalid for this array." ?

lvl107
20-Turquoise

"This array index is invalid for this array." ?

Hello Everyone.

From :

1.PNG2.PNG"This array index is invalid for this array." ?. How to make a correction ?

    Thanks in advance.

         Regards.

ACCEPTED SOLUTION

Accepted Solutions
Fred_Kohlhepp
23-Emerald I
(To:lvl107)


@lvl107 wrote:

Neither do I. (see "x.cos(x) - sin(x) = 0 solve , x ?" 's post). 

    Regards.

 


This "zeros" is not a built-in Mathcad function; it's probably a user defined function in the sheet you're referencing.  (Many long-time users have hidden regions of utility functions at the top of their template sheets.)

 

The sequence I showed (defining only the last element) will create an array or matrix full of zeros of that size and does not require a utility function.

View solution in original post

4 REPLIES 4
Fred_Kohlhepp
23-Emerald I
(To:lvl107)

I don't recognize the function "zeros".

 

Try this:Capture.PNG

lvl107
20-Turquoise
(To:Fred_Kohlhepp)

Neither do I. (see "x.cos(x) - sin(x) = 0 solve , x ?" 's post). 

    Regards.

 

Fred_Kohlhepp
23-Emerald I
(To:lvl107)


@lvl107 wrote:

Neither do I. (see "x.cos(x) - sin(x) = 0 solve , x ?" 's post). 

    Regards.

 


This "zeros" is not a built-in Mathcad function; it's probably a user defined function in the sheet you're referencing.  (Many long-time users have hidden regions of utility functions at the top of their template sheets.)

 

The sequence I showed (defining only the last element) will create an array or matrix full of zeros of that size and does not require a utility function.

lvl107
20-Turquoise
(To:Fred_Kohlhepp)

I'm very sorry, Fred. Smiley Sad I made wrong typing in the program function.

See  https://community.ptc.com/t5/PTC-Mathcad/x-cos-x-sin-x-0-solve-x/m-p/577974#M182991

2a.PNG

 

    Best Regards.

Announcements

Top Tags