This value must be a vector in MPC10
Hi,
Seems that Mathcad Prime 10 does not allow anymore this. How to do in this case?

Hi,
Seems that Mathcad Prime 10 does not allow anymore this. How to do in this case?

I already mention the fact that this undocumented trick does not work anymore in a former thread and provided a range2vec function.
But of course it would be easier to use a function which creates the vector right ahead.
But to quickly fix older worksheets the function may come handy.

In the past many functions which would create a vector were posted now and then. Some follow the syntax of a range definition and require the user to provide first, second and last value. Due to numerical round-off errors some of those functions suffer from the problem that the number of elements is calculated wrong and the last value is missing.
See here why "rangevec" fails with your example:

You may have the idea to use "round" instead of floor, but this would yield wrong results in other cases. For example

BTW, on contrary to Luc I won't call it an improvement when a convenient, but undocumented feature is ditched without providing an at least equally convenient official, 'legal' replacement - either for turning a range into a vector or for quickly creating the desired vector right ahead.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.