Here done in MC15 using a vector instead of a range.
The “vec” function is available in Prime 11 and above.
Please note that vectorization and symbolic evaluation of X are mandatory.
BTW, the question should have been posted in “Mathcad” (like this) and rather not in “Ask me anything about Mathcad” which, contrary to the title, is NOT intended for questions regarding the use of Mathcad.