14-Alexandrite
October 7, 2024
Solved
NaN as a result
- October 7, 2024
- 2 replies
- 2325 views
I don't know why I getting this kind of result.. I tried everything. It is on page 15 . I use prime 9

Thanks in advance for your help
Whenever in any calculation a NaN is involved, the result is NaN.

Maybe a utility function to do the vector multiplication ignoring any multiplications with NaN involved could help:

![]()
Applied to your calculation it looks like this:

Is this somewhere near to what you expected?
The calculation takes some time as Prime has to multiply 3669*2=7338 times two 3670x1 vectors and a user-written function using augment and filterNaN isn't very fast.
Prime 9 sheet attached
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.