<![CDATA[Teaching simple programming and Monte Carlo methods with Geogebra CAS]]>
https://help.geogebra.org/topic/teaching-simple-programming-and-monte-carlo-methods-with-geogebra-cas
Mon, 13 Apr 2020 05:17:51 +0000Wed, 01 Apr 2020 14:22:16 +0000Zend_Feed<![CDATA[You make a list MC:=Sequence(Zip(sqrt(A*B)−floor(sqrt(A*B)),A,{Random(1,20)},B,{Random(1,20)}),i,1,n) CountIf(x ≟ 0,MC) Or you want to write it to 1 line... Do you want to test IsInteger() or mod(a,floor(a))=0 You should avoid to test difference =0]]>
https://help.geogebra.org/topic/teaching-simple-programming-and-monte-carlo-methods-with-geogebra-cas#comment-278572
Wed, 01 Apr 2020 21:50:09 +0000<![CDATA[Thank you! Works like a charm. Can you elaborate a little bit why modulo is better than difference?]]>
https://help.geogebra.org/topic/teaching-simple-programming-and-monte-carlo-methods-with-geogebra-cas#comment-278840
Sat, 04 Apr 2020 14:00:53 +0000<![CDATA[As Michael told IsInteger() is not working in CAS you can use it in AlgebraView. I dont know wether the calculation of difference with floor is exact (for sure not in AlgebraView) what will mean the difference not equals exact 0 (e.g. better to test abs(difference)<10^-15 ). Mod is a CAS function that hopefully works exact.]]>
https://help.geogebra.org/topic/teaching-simple-programming-and-monte-carlo-methods-with-geogebra-cas#comment-278844
Sat, 04 Apr 2020 15:07:23 +0000<![CDATA[all your commands work in algebra view. why we must to use CAS]]>
https://help.geogebra.org/topic/teaching-simple-programming-and-monte-carlo-methods-with-geogebra-cas#comment-278848
Sat, 04 Apr 2020 15:25:06 +0000<![CDATA[If you make long lists CAS is slow. Use Algerra View with long sequences. M]]>
https://help.geogebra.org/topic/teaching-simple-programming-and-monte-carlo-methods-with-geogebra-cas#comment-279300
Mon, 13 Apr 2020 05:17:52 +0000