User Manual
Table Of Contents
- Contents
- Getting Acquainted — Read This First!
- Chapter 1 Basic Operation
- Chapter 2 Manual Calculations
- 1. Basic Calculations
- 2. Special Functions
- 3. Specifying the Angle Unit and Display Format
- 4. Function Calculations
- 5. Numerical Calculations
- 6. Complex Number Calculations
- 7. Binary, Octal, Decimal, and Hexadecimal Calculations with Integers
- 8. Matrix Calculations
- 9. Vector Calculations
- 10. Metric Conversion Calculations
- Chapter 3 List Function
- Chapter 4 Equation Calculations
- Chapter 5 Graphing
- 1. Sample Graphs
- 2. Controlling What Appears on a Graph Screen
- 3. Drawing a Graph
- 4. Saving and Recalling Graph Screen Contents
- 5. Drawing Two Graphs on the Same Screen
- 6. Manual Graphing
- 7. Using Tables
- 8. Modifying a Graph
- 9. Dynamic Graphing
- 10. Graphing a Recursion Formula
- 11. Graphing a Conic Section
- 12. Drawing Dots, Lines, and Text on the Graph Screen (Sketch)
- 13. Function Analysis
- Chapter 6 Statistical Graphs and Calculations
- 1. Before Performing Statistical Calculations
- 2. Calculating and Graphing Single-Variable Statistical Data
- 3. Calculating and Graphing Paired-Variable Statistical Data (Curve Fitting)
- 4. Performing Statistical Calculations
- 5. Tests
- 6. Confidence Interval
- 7. Distribution
- 8. Input and Output Terms of Tests, Confidence Interval, and Distribution
- 9. Statistic Formula
- Chapter 7 Financial Calculation
- Chapter 8 Programming
- Chapter 9 Spreadsheet
- Chapter 10 eActivity
- Chapter 11 Memory Manager
- Chapter 12 System Manager
- Chapter 13 Data Communication
- Chapter 14 Geometry
- Chapter 15 Picture Plot
- Chapter 16 3D Graph Function
- Chapter 17 Python (fx-CG50, fx-CG50 AU only)
- Chapter 18 Distribution (fx-CG50, fx-CG50 AU only)
- Appendix
- Examination Modes
- E-CON4 Application (English)
- 1. E-CON4 Mode Overview
- 2. Sampling Screen
- 3. Auto Sensor Detection (CLAB Only)
- 4. Selecting a Sensor
- 5. Configuring the Sampling Setup
- 6. Performing Auto Sensor Calibration and Zero Adjustment
- 7. Using a Custom Probe
- 8. Using Setup Memory
- 9. Starting a Sampling Operation
- 10. Using Sample Data Memory
- 11. Using the Graph Analysis Tools to Graph Data
- 12. Graph Analysis Tool Graph Screen Operations
- 13. Calling E-CON4 Functions from an eActivity
17-12
k Using Modules (import)
In the Python mode, you can use the functions below in addition to Python built-in functions.
• Python standard math module and random module functions
• CASIO-original casioplot module functions (see page 17-18)
However, to use a function contained in a module you have to first import (
import) the module.
import Syntax
Description
import <module name> Imports the module (py file) specified by
<module name>.
from <module name> import ½ Imports all of the elements* included in the
module specified by <module name>.
from <module name> import <element>
[, <element>]
Imports the specified elements (functions,
etc.) included in the module specified by
<module name>.
* An element with a name that starts with an underscore (_) character cannot be imported.
• A single py file written by a py script is called a “module”. py files are imported using the
same syntax as
import.
• For an example of importing and using a py file, see “Sample 4: Importing a py File” in
“Sample Scripts” (page 17-31).
Notation Examples:
import math (Imports the math module.)
from math import pi, sqrt (From the math module, imports
pi and sqrt only.)
• If you use
import to import a module, you need to include “<module name>.” before a
function in order to use that function. To use
pi within the math module, for example, it would
need to be written as “math.pi”.
• When using
from to import a module, do not use the syntax below.
<module name>.<function name>
Executing an import operation with this syntax will cause an error.