HP Prime Graphing NW280AAABA manual Working with user variables Working with app variables

Models: Prime Graphing NW280AAABA

1 616
Download 616 pages 24.49 Kb
Page 431
Image 431

Working with user variables

Working with app variables

Example 2: Create a variable called ME and assign π2 to it.

1.Press Hto display Home view.

2.Assign π2 to ME:

SzjAQAcE

3.A message appears asking if you want to create a

variable called ME. Tap or press Eto confirm your intention.

You can now use that variable in subsequent calculations: ME*3 will yield 29.6…, for example.

Example 3: You can also store objects in variables

using the assignment operator: Name:=Object. In this example, we’ll store {1,2,3} in the user variable YOU.

1.Assign the list to the variable using the assignment operator:=.

AAxotwAS. Sq1o2 o3 E

2.A message appears asking if you want to create a

variable called YOU. Tap or press Eto confirm your intention.

The variable YOU is created and contains the list {1,2,3}. You can now use that variable in subsequent calculations: For example, YOU+60 will return {61,62,63}.

Just as you can assign values to Home and user variables, you can assign values to app variables. You can modify Home settings on the Home Settings screen (SH). But you can also modify a Home setting from Home view by assigning a value to the variable that represents that setting. For example, entering Base:=0 Ein Home view forces the Home settings field Integer (for the integer base) to binary. A value of 1 would force it to octal, 2 to decimal, and 3 to hex. Another example: you can change the angle measure setting from radians to degrees by entering HAngle :=1 Ein Home view.

Variables

425

Page 431
Image 431
HP Prime Graphing NW280AAABA manual Working with user variables Working with app variables, AAxotwAS. Sq1o2 o3 E