Chapter 7: Programming

Use of variables

Global and local variables are treated differently in the PROG mode.

The letters A – Z and θ, used on their own, represent global variables. Global variables correspond to the memories of the calculator (e.g., ‘C’ in a program means memory C of the calculator). Global variables allow your programs to use values stored in memories, or to pass variables from one program to another. Global variables also allow you to store results from programs and use them in any mode.

You can also name and use up to nine local variables (@v). Local variables retain values only in an individual program.

If a line in your program contains an equation such as Y = M1X + 5, it sets the global variable Y equal to (M1 X) + 5. On encountering this equation while running the program, if the value of the local variable M1 has not been defined earlier in the program, the calculator prompts you with the display ‘M1=?’ to enter a value for M1. The global variable X will already be set to the value last stored in that memory.

With just a little practice you will soon become proficient at typing programs into your calculator.

SLOPE :NORMAL Y=M¡X+5 _

SLOPE :NORMAL M¡=?

Example

Create a simple program that requests input of the base length (B1) and height (H1) of a triangle and then calculates the area (A). After creating, RUN the program to determine the area of a triangle with a base of 4 units and a height of 3 units.

1.Preparing to create a NEW program

Procedure

Key operations

Display

Enter the PROG mode.

b 2

 

Select NEW.

1

 

Select the NORMAL program mode.

0

 

Type the program name.

AREA

 

Enter the program name.

e

AREA :NORMAL

 

 

PROGRAM?

77

Page 79
Image 79
Sharp EL-5230, EL-5250 operation manual Use of variables, Procedure Key operations Display

EL-5230, EL-5250 specifications

The Sharp EL-5250 and EL-5230 are advanced scientific calculators that cater to students, professionals, and anyone in need of a reliable tool for complex calculations. Both models are designed with a blend of functionality, portability, and user-friendliness, making them excellent choices for math and engineering tasks.

The Sharp EL-5250 is equipped with a wide range of features ideal for higher-level calculations. It supports over 500 functions, including trigonometric, exponential, logarithmic, and statistical computations. The calculator also includes built-in memory functions, allowing users to store and recall values effortlessly. The large, easy-to-read LCD display can present multiple lines of data simultaneously, enhancing clarity and reducing the need for repetitive calculations.

On the other hand, the EL-5230, while slightly less advanced, still offers a robust set of functions. This model is particularly well-suited for students in high school or early college, providing essential functionalities for algebra, geometry, and basic statistics. Its 240 functions cover a variety of mathematical disciplines, making it a versatile option for different educational needs.

Both calculators feature Sharp's unique "MathPrint" technology, which is a standout characteristic allowing users to view fractions, square roots, and other expressions in a format more akin to traditional textbook layouts. This technology greatly enhances comprehension and usability, particularly for visual learners.

The calculators are powered by dual power sources, utilizing both solar and battery power, ensuring reliability in diverse environments. The compact and lightweight design of the EL-5250 and EL-5230 makes them highly portable. Users can easily carry them in a backpack or briefcase without added bulk.

Durability is another aspect where Sharp excels. The calculators are built to withstand regular use, featuring a sturdy exterior. Additionally, Sharp provides a protective cover that helps prevent damage during transport, making these calculators a long-term investment for users.

In summary, both the Sharp EL-5250 and EL-5230 deliver exceptional performance with their extensive features and advanced technology. They are perfect for those who require reliable and efficient tools for various mathematical tasks, whether in education or professional settings. With their user-friendly designs and durability, these calculators continue to be reliable companions for anyone working with numbers.