Showing posts with label fx-CG 20. Show all posts
Showing posts with label fx-CG 20. Show all posts

Sunday, March 17, 2024

Casio fx-9750GIII and fx-CG 50: Playing Games with the Probability Simulation Mode

Casio fx-9750GIII and fx-CG 50: Playing Games with the Probability Simulation Mode






The Probability Simulation add-in has six types of probability simulations:

* Coin Toss

* Dice Roll

* Spinner

* Marble Grab

* Card Draw

* Random Numbers


The add-in application is available for the following calculators:

* Casio fx-9750GIII and fx-9860GIII (and Graph 75/85/95 series, Graph 35+ E II)

* Casio fx-CG 10/20 and fx-CG 50 (and Graph 90+E)

* Casio fx-9860G


I believe on the fx-9750GIII and fx-9860GIII, the Probability Simulation Add-In is available out of the box. For others, the add-in can be downloaded through Casio’s Worldwide Education Website: https://edu.casio.com/download/index.php.


Let’s look at three ways we can use the Probability Simulation add-in in games of chance. This is a great app when you don’t have a pair of dice, playing cards, or a bag of marbles around.


In the Set Up menu, there is an option for seed from 1 to 99999.


Screen shots are from the fx-CG 50.


Interaction with Other Modes


* Data can be stored into global lists 1-26. Lists in these Casio calculators contain only numerical information. Numerical codes are used for card suits and face cards.


* There are no commands from the Add-In that can be used in programming. The simulation is mean to be a stand-alone app.




Drawing a Poker Hand






From the main screen, press F5 for Card Draw. To simulate poker, go into set up by pressing [SHIFT] {SET UP}. We can set either a 52 playing card deck, which is the standard deck without Jokers, or a reduced deck of 32 cards (sevens through Aces only). We don’t want Replacement, so turn that off. Press [ EXIT ] to go back to the simulation.


To draw a single card, press [ F1 ]. To draw multiple cards, press [ F2 ] for { +n }. At the prompt, press [AC/ON] and enter the number of cards.


We will have to memorize the cards or note the down on paper or another writing device.


To save the cards drawn, select [ F3 ] (STORE). There are three lists:


Draw: Draw number

Value: Card value. 1 = Ace, 11 = Jack, 12 = Queen, 13 = King

Suit: 1 = Heart, 2 = Club, 3 = Spade, 4 = Diamond


Lists can be allocated to the global list variables List 1 to List 26. Press [ F6 ] { EXE } to store the cards. Storing results works similarly in other applications.



Rolling Dice in Adventure Games





In adventure and fantasy games such as Dungeon and Dragons, sometimes dice beyond the standard six-sided die is needed. The Dice Roll (F2 from the Main Menu) has dice that are four-sided, six-sided, eight-sided, twelve-sided, and twenty-sided. Up to three dice can be thrown at once.


A Simple Lottery





Random integers from 0 to 99 can be drawn with the Random Numbers. Again, the set up menu is the key. For the lottery, turn the Repeat option off. Above are four draws from a simple lottery from 63 numbers.



This has been a look at Casio’s Probability Simulation Add-In. Until next time,


Eddie


All original content copyright, © 2011-2024. Edward Shore. Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited. This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author.


Saturday, March 21, 2020

Modern Casio Graphing Calculators: Function Memory

Modern Casio Graphing Calculators: Function Memory

This blog covers all the series:
*  Casio fx-7400gii (I don't believe earlier versions of the 7400 have this)
*  Casio fx-9750g, fx-9750gii
*  Casio fx-9860g, fx-9860gii, fx-9860 Slim
*  Casio Prizm fx-CG10/20
*  Casio fx-CG 50

Screenshots are from the fx-CG 50.

Note:  Casio calculators with math print (9860, CG 10, CG 20, CG 50), the menu FMEM/FUNCMEM will only appear when the calculator is set to Line Mode.   In any case, the commands will be always available throughout the Catalog and in Program editing mode. 

Menu names:  FMEM or FUNCMEM

Introduction

The calculator has 20 slots for function memory.  They can be for any variable, any amount of variables.   To access the FMEM (FUNCMEM for the fx-CG 10, fx-CG 20, and fx-CG 50) menu:  press [OPTN].  Please refer to the note above because this menu only appears in Line mode.  (although you still can access fn in the catalog).



You can store expressions to function memory one of two ways:

1.  Use a string and use the store arrow (→).

2.  From the FMEM/FUNCMEM menu, select STORE.  You will be prompted to enter a slot from 1 to 20.  Then you will be taken the list of all the functions stored in memory.  Press [EXIT].



You can clear an expression stored in fn, by storing nothing to it.  It is easiest to do this from the RUN.MAT mode.



You can paste the expression stored in fn by pressing RECALL, and entering the fn number at the prompt.  I think you can only do this in RUN.MAT mode.



Anything stored in fn can be used in evaluating expressions and mathematical commands.   See the screen shots below.  To evaluate fn, store the values in the variables first before recalling fn. 



The next screen shots show how fn can be stored in a graphing database (assuming it has the proper variables and type).



Hopefully you can find this helpful and it makes the use of Casio graphing calculators more efficient. 

Eddie

All original content copyright, © 2011-2020.  Edward Shore.   Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited.  This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author.

HP 20S: Acoustics Programs

HP 20S: Acoustics Programs Program A: Speed of Sound in Dry Air cs = 20.05 × √(273.15 + T°C) Code: 01: 61, 41, A: LBL A 02: ...