[fixed] BinomialDist[10,0.5,5,0] error message

matheod shared this problem 6 years ago
Answered

Hi,


I a little in rush (maybe it's corrected in the last version) so I don't have time to make a proper bug report but :


BinomialDist[10,0.5,5,0] no longer work (it return an error popup saying the third argument is incorrect).


    GeoGebra 5.0.82.0-3D (30 March 2015)

    Java: 1.7.0_40

    Codebase: file:/C:/Users/Matheod/AppData/Roaming/GeoGebra%205.0/jars/current/geogebra.jar

    OS: Windows 8

    Architecture: x86 / x86

    Heap: 247MB

    CAS: Giac/JNI


    GeoGebraLogger log:

    23:47:23.834 DEBUG: geogebra.a.a.a.a[-1]: giac: initialize

    23:47:23.834 DEBUG: ?: thread starting: [[[ggbbinarg0:=10], [ggbbinarg1:=(5/10)], [ggbbinarg2:=2]],if 0=true then binomial_cdf(ggbbinarg0,ggbbinarg1,ggbbinarg2) else binomial(ggbbinarg0,ggbbinarg1,ggbbinarg2) fi][1]

    23:47:23.910 DEBUG: geogebra.a.a.a$a.run[-1]: giac evalRaw input: evalfa([[[ggbbinarg0:=10], [ggbbinarg1:=(5/10)], [ggbbinarg2:=2]],if 0=true then binomial_cdf(ggbbinarg0,ggbbinarg1,ggbbinarg2) else binomial(ggbbinarg0,ggbbinarg1,ggbbinarg2) fi][1])

    23:47:23.930 DEBUG: geogebra.a.a.a$a.run[-1]: giac evalRaw output: 45/1024

    23:47:23.930 DEBUG: ?: message from thread: 45/1024

    23:47:23.930 DEBUG: geogebra.a.a.a.b[-1]: giac: after interrupt/stop

    23:47:23.930 DEBUG: geogebra.a.a.a.b[-1]: giac output: 45/1024

    23:47:23.930 DEBUG: geogebra.common.l.j.n.s_[-1]: updating$1

    23:47:51.391 DEBUG: javax.swing.JMenu.fireMenuSelected[-1]: Menu opening: class geogebra.gui.i.U

    23:47:51.391 DEBUG: javax.swing.JMenu.fireMenuSelected[-1]: creating menu items

    23:47:51.396 ERROR: geogebra3D.g.a.a[-1]: Image /gui/images/64px/forum.gif not found

    23:47:51.396 ERROR: geogebra3D.g.a.a[-1]: Image /gui/images/64px/forum.png not found

    23:47:57.315 DEBUG: javax.swing.JMenu.fireMenuSelected[-1]: Menu opening: class geogebra.gui.i.U

    23:47:58.843 DEBUG: geogebra.gui.h.q.a[-1]: POSITIONbottom

    23:47:59.124 DEBUG: geogebra.gui.R.d[-1]: opening URL:http://www.geogebra.org/bugs/?v=5.0

    23:47:59.124 DEBUG: geogebra.gui.R.d[-1]: opening URL:http://www.geogebra.org/bugs/?v=5.0

    23:49:03.462 DEBUG: geogebra.gui.R.a[-1]: opening URL:http://www.geogebra.org/hel...

    23:49:03.462 DEBUG: geogebra.gui.R.a[-1]: opening URL:http://www.geogebra.org/hel...

    23:49:14.823 DEBUG: geogebra.gui.R.a[-1]: opening URL:http://www.geogebra.org/hel...

    23:49:14.823 DEBUG: geogebra.gui.R.a[-1]: opening URL:http://www.geogebra.org/hel...

    23:51:46.559 DEBUG: javax.swing.JMenu.fireMenuSelected[-1]: Menu opening: class geogebra.gui.i.U


    GGB file content:

    <?xml version="1.0" encoding="utf-8"?>

    <geogebra format="5.0" version="5.0.82.0" id="1cf637e6-f82a-482e-9ff7-d0c82e1553e0" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/ggb...; xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLS...; >

    <gui>

    <window width="1600" height="860" />

    <perspectives>

    <perspective id="tmp">

    <panes>

    <pane location="" divider="0.1875" orientation="1" />

    <pane location="1" divider="0.125" orientation="1" />

    <pane location="1,1" divider="0.315" orientation="1" />

    </panes>

    <views>

    <view id="4097" visible="false" inframe="true" stylebar="true" location="1,1,1,1" size="400" window="731,237,700,550" />

    <view id="1" visible="true" inframe="false" stylebar="true" location="1,1,3" size="504" window="100,100,600,400" />

    <view id="4" toolbar="0 || 2020 , 2021 , 2022 , 66 || 2001 , 2003 , 2002 , 2004 , 2005 || 2040 , 2041 , 2042 , 2044 , 2043" visible="true" inframe="false" stylebar="true" location="1,1,1" size="285" window="100,100,600,400" />

    <view id="512" toolbar="0 | 1 501 5 19 , 67 | 2 15 45 18 , 7 37 | 514 3 9 , 13 44 , 47 | 16 | 551 550 11 , 22 , 23 , 55 56 57 , 12 | 69 | 510 511 , 512 513 | 533 531 , 534 532 , 522 523 , 537 536 , 535 | 521 520 | 36 , 38 49 560 | 571 30 29 570 31 33 | 17 | 540 40 41 42 , 27 28 35 , 6 , 502" visible="false" inframe="false" stylebar="false" location="1,1,1" size="500" window="100,100,600,400" />

    <view id="2" visible="true" inframe="false" stylebar="false" location="1,3" size="200" window="100,100,250,400" />

    <view id="8" toolbar="1001 | 1002 | 1003 || 1005 | 1004 || 1006 | 1007 | 1010 || 1008 1009 || 66 68 || 6" visible="true" inframe="false" stylebar="false" location="3" size="300" window="100,100,600,400" />

    <view id="16" visible="false" inframe="false" stylebar="false" location="1" size="150" window="50,50,500,500" />

    <view id="32" visible="false" inframe="false" stylebar="true" location="1" size="150" window="50,50,500,500" />

    <view id="64" toolbar="0" visible="false" inframe="true" stylebar="true" location="1" size="150" window="550,180,500,500" />

    <view id="70" toolbar="0 || 2020 || 2021 || 2022" visible="false" inframe="true" stylebar="true" location="1" size="150" window="50,50,500,500" />

    </views>

    <toolbar show="true" items="0 39 | 1 501 67 , 5 19 , 72 | 2 15 45 , 18 65 , 7 37 | 4 3 8 9 , 13 44 , 58 , 47 | 16 51 64 , 70 | 10 34 53 11 , 24 20 22 , 21 23 | 55 56 57 , 12 | 36 46 , 38 49 50 , 71 | 30 29 54 32 31 33 | 17 26 62 73 , 14 68 | 25 52 60 61 | 40 41 42 , 27 28 35 , 6" position="1" help="false" />

    <input show="true" cmd="true" top="false" />

    <dockBar show="true" east="true" />

    </perspective>

    </perspectives>

    <labelingStyle val="0"/>

    <font size="12"/>

    <graphicsSettings javaLatexFonts="false"/>

    </gui>

    <euclidianView>

    <viewNumber viewNo="1"/>

    <size width="504" height="673"/>

    <coordSystem xZero="316.88258060912267" yZero="405.89102541389383" scale="16.838789369539764" yscale="601.0031965919195"/>

    <evSettings axes="true" grid="true" gridIsBold="false" pointCapturing="3" rightAngleStyle="1" checkboxSize="26" gridType="0"/>

    <bgColor r="255" g="255" b="255"/>

    <axesColor r="0" g="0" b="0"/>

    <gridColor r="192" g="192" b="192"/>

    <lineStyle axes="1" grid="10"/>

    <axis id="0" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true"/>

    <axis id="1" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true"/>

    </euclidianView>

    <spreadsheetView>

    <prefCellSize width="96"/>

    height="22"/>

    <spreadsheetColumn id="0" width="70"/>

    <spreadsheetColumn id="1" width="70"/>

    <spreadsheetColumn id="2" width="70"/>

    <spreadsheetColumn id="3" width="70"/>

    <spreadsheetColumn id="4" width="70"/>

    <spreadsheetColumn id="5" width="70"/>

    <spreadsheetColumn id="6" width="70"/>

    <spreadsheetColumn id="7" width="70"/>

    <spreadsheetColumn id="8" width="70"/>

    <spreadsheetColumn id="9" width="70"/>

    <spreadsheetColumn id="10" width="70"/>

    <spreadsheetColumn id="11" width="70"/>

    <spreadsheetColumn id="12" width="70"/>

    <spreadsheetColumn id="13" width="70"/>

    <spreadsheetColumn id="14" width="70"/>

    <spreadsheetColumn id="15" width="70"/>

    <spreadsheetColumn id="17" width="70"/>

    <spreadsheetColumn id="16" width="70"/>

    <spreadsheetColumn id="19" width="70"/>

    <spreadsheetColumn id="18" width="70"/>

    <spreadsheetColumn id="21" width="70"/>

    <spreadsheetColumn id="20" width="70"/>

    <spreadsheetColumn id="23" width="70"/>

    <spreadsheetColumn id="22" width="70"/>

    <spreadsheetColumn id="25" width="70"/>

    <spreadsheetColumn id="24" width="70"/>

    </spreadsheetView>

    <algebraView>

    <auxiliary show="true"/>

    </algebraView>

    <kernel>

    <continuous val="false"/>

    <usePathAndRegionParameters val="true"/>

    <decimals val="2"/>

    <angleUnit val="degree"/>

    <algebraStyle val="0"/>

    <coordStyle val="0"/>

    <angleFromInvTrig val="false"/>

    </kernel>

    <scripting blocked="false" disabled="false"/>

    <construction title="" author="" date="">

    <element type="numeric" label="n">

    <value val="28.0"/>

    <show object="true" label="true"/>

    <objColor r="0" g="0" b="0" alpha="0.1"/>

    <layer val="5"/>

    <labelMode val="1"/>

    <slider min="0" max="500" absoluteScreenLocation="true" width="200.0" x="663.0" y="98.0" fixed="true" horizontal="true"/>

    <lineStyle thickness="10" type="0" typeHidden="1"/>

    <animation step="1" speed="1" type="0" playing="false"/>

    </element>

    <element type="numeric" label="p">

    <value val="0.5"/>

    <show object="true" label="true"/>

    <objColor r="0" g="0" b="0" alpha="0.1"/>

    <layer val="5"/>

    <labelMode val="1"/>

    <slider min="0" max="1" absoluteScreenLocation="true" width="200.0" x="664.0" y="141.0" fixed="true" horizontal="true"/>

    <lineStyle thickness="10" type="0" typeHidden="1"/>

    <animation step="0.01" speed="1" type="0" playing="false"/>

    </element>

    <command name="BinomialDist">

    <input a0="n" a1="p"/>

    <output a0="a"/>

    </command>

    <element type="numeric" label="a">

    <value val="0.9999999999999997"/>

    <show object="true" label="true"/>

    <condition showObject="e"/>

    <objColor r="255" g="0" b="0" alpha="0.5"/>

    <layer val="5"/>

    <labelMode val="1"/>

    <lineStyle thickness="2" type="0" typeHidden="1"/>

    <auxiliary val="true"/>

    <tags>

    </tags>

    </element>

    <command name="Normal">

    <input a0="(n * p)" a1="sqrt(((n * p) * (1 - p)))" a2="x"/>

    <output a0="f"/>

    </command>

    <element type="function" label="f">

    <show object="true" label="true"/>

    <condition showObject="d"/>

    <objColor r="0" g="0" b="255" alpha="0.0"/>

    <layer val="5"/>

    <labelMode val="0"/>

    <auxiliary val="true"/>

    <lineStyle thickness="2" type="0" typeHidden="1"/>

    </element>

    <command name="Poisson">

    <input a0="(n * p)"/>

    <output a0="b"/>

    </command>

    <element type="numeric" label="b">

    <value val="0.35845841696634106"/>

    <show object="true" label="true"/>

    <condition showObject="g"/>

    <objColor r="0" g="255" b="0" alpha="0.5"/>

    <layer val="5"/>

    <labelMode val="1"/>

    <lineStyle thickness="2" type="0" typeHidden="1"/>

    <auxiliary val="true"/>

    <tags>

    </tags>

    </element>

    <expression label="np" exp="(n * p)" />

    <element type="numeric" label="np">

    <value val="14.0"/>

    <objColor r="0" g="0" b="0" alpha="0.1"/>

    <auxiliary val="true"/>

    </element>

    <expression label="c" exp="(n * p)" />

    <element type="numeric" label="c">

    <value val="14.0"/>

    <objColor r="0" g="0" b="0" alpha="0.1"/>

    <auxiliary val="true"/>

    </element>

    <command name="LaTeX">

    <input a0=""n\times{}p =" + c" a1="true" a2="false"/>

    <output a0="texte1"/>

    </command>

    <element type="text" label="texte1">

    <show object="true" label="true"/>

    <objColor r="0" g="0" b="0" alpha="0.0"/>

    <layer val="5"/>

    <labelMode val="0"/>

    <isLaTeX val="true"/>

    <font serif="false" sizeM="1.0" size="0" style="0"/>

    <absoluteScreenLocation x="873" y="111"/>

    </element>

    <expression label="texte2" exp=""\mathcal{N}\left(np,\sqrt{np(1-p)}\right)""/>

    <element type="text" label="texte2">

    <show object="true" label="true"/>

    <objColor r="0" g="0" b="255" alpha="0.0"/>

    <layer val="5"/>

    <labelMode val="0"/>

    <fixed val="true"/>

    <isLaTeX val="true"/>

    <font serif="true" sizeM="1.0" size="0" style="0"/>

    <absoluteScreenLocation x="122" y="102"/>

    </element>

    <expression label="texte2_1" exp=""\mathcal{B}\left(n,p\right)""/>

    <element type="text" label="texte2_1">

    <show object="true" label="true"/>

    <objColor r="255" g="0" b="0" alpha="0.0"/>

    <layer val="5"/>

    <labelMode val="0"/>

    <fixed val="true"/>

    <isLaTeX val="true"/>

    <font serif="true" sizeM="1.0" size="0" style="0"/>

    <absoluteScreenLocation x="123" y="163"/>

    </element>

    <expression label="texte2_2" exp=""\mathcal{P}\left(np\right)""/>

    <element type="text" label="texte2_2">

    <show object="true" label="true"/>

    <objColor r="0" g="255" b="0" alpha="0.0"/>

    <bgColor r="255" g="255" b="255" alpha="255"/>

    <layer val="5"/>

    <labelMode val="0"/>

    <fixed val="true"/>

    <isLaTeX val="true"/>

    <font serif="true" sizeM="1.0" size="0" style="0"/>

    <absoluteScreenLocation x="122" y="223"/>

    </element>

    <element type="boolean" label="d">

    <value val="true"/>

    <show object="true" label="true"/>

    <objColor r="0" g="0" b="0" alpha="0.0"/>

    <layer val="6"/>

    <labelOffset x="84" y="95"/>

    <labelMode val="0"/>

    <auxiliary val="true"/>

    <checkbox fixed="true"/>

    <caption val="                                                 "/>

    </element>

    <element type="boolean" label="e">

    <value val="true"/>

    <show object="true" label="true"/>

    <objColor r="0" g="0" b="0" alpha="0.0"/>

    <layer val="6"/>

    <labelOffset x="83" y="155"/>

    <labelMode val="0"/>

    <checkbox fixed="true"/>

    <caption val="                                                 "/>

    </element>

    <element type="boolean" label="g">

    <value val="true"/>

    <show object="true" label="true"/>

    <objColor r="0" g="0" b="0" alpha="0.0"/>

    <layer val="6"/>

    <labelOffset x="82" y="215"/>

    <labelMode val="0"/>

    <checkbox fixed="true"/>

    <caption val="                                                 "/>

    </element>

    <expression label="B1" exp=""=Binomiale[n,p,A1,0]""/>

    <element type="text" label="B1">

    <show object="false" label="true"/>

    <objColor r="0" g="0" b="0" alpha="0.0"/>

    <layer val="6"/>

    <labelMode val="0"/>

    </element>

    <element type="numeric" label="A1">

    <value val="0.0"/>

    <show object="false" label="true"/>

    <objColor r="0" g="0" b="0" alpha="0.1"/>

    <layer val="6"/>

    <labelMode val="1"/>

    <animation step="1" speed="1" type="0" playing="false"/>

    <auxiliary val="true"/>

    </element>

    <command name="Sequence">

    <input a0="20" a1="20" a2="0" a3="20"/>

    <output a0=""/>

    </command>

    <cascell>

    <cellPair>

    <inputCell>

    <expression value="BinomialDist[10, 0.5, 2, 0]" eval="BinomialDist[10,0.5,2,0]" evalCmd=""/>

    </inputCell>

    <outputCell>

    <expression value="45 / 1024" native="true"/>

    </outputCell>

    </cellPair>

    </cascell>

    </construction>

    </geogebra>


    <?xml version="1.0" encoding="utf-8"?>

    <geogebra format="5.0" version="5.0.82.0" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/ggt...; xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLS...; >

    </geogebra>


    LibraryJavaScript:


    Preferences:

    <?xml version="1.0" encoding="utf-8"?>

    <geogebra format="4.0" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/ggb...; xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLS...; >

    <gui>

    <window width="800" height="600" />

    <settings ignoreDocument="false" showTitleBar="true" />

    <labelingStyle val="0"/>

    <mouse reverseWheel="true"/>

    <font size="12"/>

    <menuFont size="-1"/>

    <tooltipSettings language="" timeout="0"/>

    <graphicsSettings javaLatexFonts="false"/>

    </gui>

    <euclidianView>

    <size width="640" height="480"/>

    <coordSystem xZero="215.0" yZero="315.0" scale="50.0" yscale="50.0"/>

    <evSettings axes="true" grid="false" gridIsBold="false" pointCapturing="3" rightAngleStyle="2" checkboxSize="26" gridType="0"/>

    <bgColor r="255" g="255" b="255"/>

    <axesColor r="0" g="0" b="0"/>

    <gridColor r="192" g="192" b="192"/>

    <lineStyle axes="1" grid="10"/>

    <axis id="0" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true" axisCross="0.0" positiveAxis="false"/>

    <axis id="1" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true" axisCross="0.0" positiveAxis="false"/>

    </euclidianView>

    <kernel>

    <continuous val="false"/>

    <decimals val="2"/>

    <angleUnit val="degree"/>

    <algebraStyle val="0"/>

    <coordStyle val="0"/>

    <localization digits="false" labels="true"/>

    <angleFromInvTrig val="false"/>

    <casSettings timeout="5" expRoots="true"/>

    </kernel>

    <scripting blocked="false"/>

    </geogebra>


Thanks.

Comments (4)

photo
1

Did it work before?


The correct syntax is BinomialDist[10,0.5,5,false], the last argument should be boolean, bu CAS does not check that. IIRC we didn't change anything related in the last couple of months.

photo
1

Did it work before?


The correct syntax is BinomialDist[10,0.5,5,false], the last argument should be boolean, bu CAS does not check that. IIRC we didn't change anything related in the last couple of months.


Oops, sorry, you are true, it work with false instead of 0.


Still strange that the error message warn about the 5 and not about the 0. Is the error message fixable ? Thanks.

photo
1

Definitely: http://dev.geogebra.org/tra...

(will be part of 5.0.106)

photo
1

Thanks :)

© 2021 International GeoGebra Institute