Skip to main content
19-Tanzanite
Jul 4, 2025 12:23 PM UTC
Solved

Floating point error

Translator
 
 
 
 

 

 

Hi,

I am facing below error. I am reading a .txt file with some data points, and I want to make/have a function like f(x) interpolating teste data points.

Cornel_0-1751631622530.png

Cornel_1-1751631633790.png


Prime 10 file attached.

terryhendicott
21-Topaz II
Jul 4, 2025 1:30 PM UTC

Hi,

Text file has an error on the last line of the file giving rise to two NaN's at the end of the matrix columns of "a". Have edited out the last line of the text file and it now works

Cheers

Terry

 

3 replies

Cornel19-TanzaniteAuthor
19-Tanzanite
Jul 4, 2025 12:50 PM UTC

Translator
 
 
 
 

 

 
 

Cornel_0-1751633376065.png

Having less data points in txt file.
Translate
terryhendicott
21-Topaz II
Jul 4, 2025 1:30 PM UTC

Hi,

Text file has an error on the last line of the file giving rise to two NaN's at the end of the matrix columns of "a". Have edited out the last line of the text file and it now works

Cheers

Terry

 

Translate
Cornel19-TanzaniteAuthor
19-Tanzanite
Jul 4, 2025 1:42 PM UTC

 

Ok, I see, thanks

 
Translate