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. Storing a Graph in Picture Memory
- 5. Drawing Two Graphs on the Same Screen
- 6. Manual Graphing
- 7. Using Tables
- 8. Dynamic Graphing
- 9. Graphing a Recursion Formula
- 10. Graphing a Conic Section
- 11. Changing the Appearance of a Graph
- 12. 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
- 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 (TVM)
- Chapter 8 Programming
- Chapter 9 Spreadsheet
- Chapter 10 eActivity
- Chapter 11 Memory Manager
- Chapter 12 System Manager
- Chapter 13 Data Communication
- Chapter 14 PYTHON (fx-9860GIII, fx-9750GIII only)
- Chapter 15 Distribution (fx-9860GIII, fx-9750GIII only)
- Appendix
- Examination Modes (fx-9860GIII, fx-9750GIII only)
- E-CON3 Application (English) (fx-9860GIII, fx-9750GIII)
- 1 E-CON3 Overview
- 2 Using the Setup Wizard
- 3 Using Advanced Setup
- 4 Using a Custom Probe
- 5 Using the MULTIMETER Mode
- 6 Using Setup Memory
- 7 Using Program Converter
- 8 Starting a Sampling Operation
- 9 Using Sample Data Memory
- 10 Using the Graph Analysis Tools to Graph Data
- 11 Graph Analysis Tool Graph Screen Operations
- 12 Calling E-CON3 Functions from an eActivity
14-11
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 14-17)
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 14-28).
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.