Ellipse Perimeter

Ellipse Perimeter - Analysis of Calculation Methods - Poruke

#1 Objavljeno: 7. 3. 2021. 20:10:25
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Here some ellipse perimeter calculation methods through history.
These methods are based on approximation mostly.
I have also added integral method and infinite series method.
Some methods are more accurate when ellipse ratio is bigger and some are not.
Yet I have to tell, Ramanujan is not mere man. That man is a beast.

Regards.

ellipse.sm (80,09 KiB) preuzeto 1562 put(ova).

ellipse.pdf (147,33 KiB) preuzeto 1567 put(ova).

ellipse_Page_1.png

ellipse_Page_2.png
#2 Objavljeno: 7. 3. 2021. 22:28:07
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

ellipse Faster.sm (16,47 KiB) preuzeto 1548 put(ova).
#3 Objavljeno: 8. 3. 2021. 09:27:57
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Well your file is a different file which has relation only on integral calculation with my sample.
It has only ellipse perimeter calculation with integral functions, nothing more.

If you want a faster version of my file download it below.
Creating 10 different graphic data for 40 different ratio is time consuming.
Yet original file is slow only due to graphic of infinite serie.
If you disable it calculation will be much faster.

ellipse_without infinite.sm (79,13 KiB) preuzeto 1537 put(ova).

ellipse_faster.png
#4 Objavljeno: 8. 7. 2021. 15:29:07
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

Wrote

...
Yet original file is slow only due to graphic of infinite serie.
...



Hi overlord. You can speed up the series calculation using only one eval() in the entire document as pointed. I guess that without rounding errors because the result it's an integer. With that, you can increase the summation limit to 200 or 300 increasing the time only by one or two seconds, given a better approximation to the true percentage of Ramanujan's alien DNA.

Clipboard01.jpg


Best regards.
Alvaro.
#5 Objavljeno: 8. 7. 2021. 16:03:39
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Wrote

Hi overlord. You can speed up the series calculation using only one eval() in the entire document as pointed. I guess that without rounding errors because the result it's an integer. With that, you can increase the summation limit to 200 or 300 increasing the time only by one or two seconds, given a better approximation to the true percentage of Ramanujan's alien DNA.

Best regards.
Alvaro.


Your suggestion really make it faster. Thanks.
I am gonna save the file respect to your correction.
Though after j>133 the eval() hits the border of max number allowed.
Or without using eval(), product gives the error above. Doesn't matter.
By setting the upper limit of product to 133 of infinite serie, error percentage is 0.08.
My brain can't comprehend how the hell Ramanujan found that formula.

Regards

2021-07-08_22-02.png
#6 Objavljeno: 8. 7. 2021. 17:09:39
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

Wrote

...
Though after j>133 the eval() hits the border of max number allowed.
Or without using eval(), product gives the error above. Doesn't matter.
...



Not in my SMath ( Win 32 bits, appVersion(4)="0.99.7822.147" ). I can put 500 as upper limit without problems. Here the plot with a limit of 200:

Clipboard01.jpg

Best regards.
Alvaro.

#7 Objavljeno: 8. 7. 2021. 17:39:00
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Wrote

Not in my SMath ( Win 32 bits, appVersion(4)="0.99.7822.147" ). I can put 500 as upper limit without problems. Here the plot with a limit of 200:
Best regards.
Alvaro.


The result of P8 shall be same with P12 after j>133.
K couldn't be calculated for P8 and K of P12 shall be assigned to P8.
If you add an additional Clear(K) after P8 calculation you will see what I meant.

Regards.
1 korisnika je svidelo ovu objavu
Alvaro 8. 7. 2021. 21:03:00
#8 Objavljeno: 8. 7. 2021. 20:41:20
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

Wrote

Wrote

Not in my SMath ( Win 32 bits, appVersion(4)="0.99.7822.147" ). I can put 500 as upper limit without problems. Here the plot with a limit of 200:
Best regards.
Alvaro.


The result of P8 shall be same with P12 after j>133.
K couldn't be calculated for P8 and K of P12 shall be assigned to P8.
If you add an additional Clear(K) after P8 calculation you will see what I meant.

Regards.



Hi. Thanks, you're right, calculation continues even though they have reached an error, and then they are replaced by the values of the other calculation. Funny that there is no error message when the overflow occurs.

Best regards.
Alvaro.
#9 Objavljeno: 11. 7. 2021. 09:02:29
Laurent Fournier

Laurent Fournier

9 svidjanja u 66 postova.

Grupa: User

Ramanujan is a poet! No one understands how he found his beautifully simple and accurate formulas!

Wrote

Here some ellipse perimeter calculation methods through history.
These methods are based on approximation mostly.
I have also added integral method and infinite series method.
Some methods are more accurate when ellipse ratio is bigger and some are not.
Yet I have to tell, Ramanujan is not mere man. That man is a beast.

Regards.

ellipse.sm (80,09 KiB) preuzeto 1562 put(ova).

ellipse.pdf (147,33 KiB) preuzeto 1567 put(ova).

ellipse_Page_1.png

ellipse_Page_2.png



#10 Objavljeno: 11. 7. 2021. 11:03:01
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

Ramanujan is a poet !


... a Mathematician as well !!!
Here is the exact arc length of the ellipse in Smath.
Cheers ... Jean.

Circle_Ellipse_Parabola [Ellipse ArcLength].sm (20,97 KiB) preuzeto 1314 put(ova).

  • Novi postovi
  • Nema novih postova