EasyManuals Logo

Casio fx-CG50 User Manual

Casio fx-CG50
667 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #589 background imageLoading...
Page #589 background image
17-30
Sample 2: Importing a Module
Purpose
import imports a module and makes it possible to run the
functions defined within it. Use the syntax below to execute
function within the module.
<module name>.<function name>
Description
import math
Imports the math module and makes it possible to run the function defined
by it.
P=math.pi
Defines variable P as
pi, which is defined in the math module.
print(P) Outputs the value stored in variable P.
Execution Result
Sample 3: Defining a User-defined Function
Purpose
def defines a user-defined function.
The script below recalls and uses the py script created under
“Sample 4: Importing a py File”.

Table of Contents

Other manuals for Casio fx-CG50

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Casio fx-CG50 and is the answer not in the manual?

Casio fx-CG50 Specifications

General IconGeneral
Display TypeColor LCD
ConnectivityUSB
GraphingYes
Dimensions188.5 x 89 x 18.6 mm
Weight230 g
CASNo
Storage16 MB Flash ROM
3D GraphingYes
SpreadsheetYes
Equation SolverYes
Statistical FunctionsYes
Financial FunctionsYes
Power Source4 x AAA batteries
Programming LanguagesBASIC
Memory16 MB

Related product manuals