I am new to coding and have a program that produces 1000 3d points into a txt file for a scatter plot in which I lay an elipsoid over it. I need to perform an ellipsoid equation that reads all of those points into a loop that will give me the percentage at the end of how many points lie in the ellipsoid.
How do I read a large txt file directly into a loop with a equation?
the equation I need it read into is if (x/2)^2+(y/2)^2+(z/1)^2 < 1 then it is in the ellipsoid.
Any help is appreciated thank you!