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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Range Variables not accepting step <1

RWickrama
10-Marble

Range Variables not accepting step <1

xx:

 

After a while, I am using the Mathcad Prime. Yesterday, I found that the range variables not doing well in case I use step less than 1. Otherwise (for example, 1.25, 2.1, etc. are OK).

Range Variable Not Doing Well.png

Essentially, I want to specify step < 1>

I would like to how to get around this issue.

PL. Help.

 

Mathcad Prime 10.0.1.0

ACCEPTED SOLUTION

Accepted Solutions
StuartBruff
23-Emerald III
(To:RWickrama)


@RWickrama wrote:

xx:

 

After a while, I am using the Mathcad Prime. Yesterday, I found that the range variables not doing well in case I use step less than 1. Otherwise (for example, 1.25, 2.1, etc. are OK).

Range Variable Not Doing Well.png

Essentially, I want to specify step < 1>

I would like to how to get around this issue.

PL. Help.

 

Mathcad Prime 10.0.1.0


 

The 3-place Mathcad range operator does not take the step size.  It takes the first value of a sequence, then the second value in the sequence, and then the bound (usually final value) of the sequence defined by the first two values.   The 2-place range operator assumes that the second value is sign(last-first).

 

Set the second value in the range variable to the first value plus the step value:

2024 12 27 C.png

 

Stuart

 

View solution in original post

3 REPLIES 3
StuartBruff
23-Emerald III
(To:RWickrama)


@RWickrama wrote:

xx:

 

After a while, I am using the Mathcad Prime. Yesterday, I found that the range variables not doing well in case I use step less than 1. Otherwise (for example, 1.25, 2.1, etc. are OK).

Range Variable Not Doing Well.png

Essentially, I want to specify step < 1>

I would like to how to get around this issue.

PL. Help.

 

Mathcad Prime 10.0.1.0


 

The 3-place Mathcad range operator does not take the step size.  It takes the first value of a sequence, then the second value in the sequence, and then the bound (usually final value) of the sequence defined by the first two values.   The 2-place range operator assumes that the second value is sign(last-first).

 

Set the second value in the range variable to the first value plus the step value:

2024 12 27 C.png

 

Stuart

 

Thanka a lot for the reply.

I got it.

I started again Mathcad since I stopped using begining COVID outbreak.

 

Could you upload your sample work. I like it.

Thanks.

StuartBruff
23-Emerald III
(To:RWickrama)

Sample attached, along with a version of vec that flattens nested arrays.

 

Mathcad 10.0.1.0

Announcements

Top Tags