EZ Math Movie, Language, Input, Output


Input, output

get1stInputValue()

This command returns the current numeric value of the 1st input gizmo. It is used this way:

x = get1stInputValue();

After the above code executes, the variable x would hold the current numeric value of the 1st input gizmo.

There are similar commands for the other input gizmos:

See: set1stInputValue()

hide1stInput()

This command removes the 1st input gizmo from the input panel display. It is used this way:

hide1stInput();

There are similar commands for the other input gizmos:

See: show1stInput()

hide1stOutput()

This command removes the 1st output gizmo from the output panel display. It is used this way:

hide1stOutput();

There are similar commands for the other output gizmos:

See: show1stOutput()

set1stInputDomain('domain')

This command sets the span of values for an input gizmo. It also sets the step size that will be used to change the input gizmo's value. Often, you would simply adjust these input parameters directly on the input gizmo. This command lets you also do this from within your program. It is used this way:

set1stInputDomain('[-100, 100] by 10');

The above code would set up the 1st input gizmo like this:

The domain parameter given to set1stInputDomain can be any of the following:

There are similar commands for the other input gizmos:

set1stInputName('name')

This command sets the name of the 1st input gizmo. It is used this way:

set1stInputName('Velocity');

Of course, you could also set the name by editing the input gizmo directly. You would use the set1stInputName command when you wanted to set the name from within your program code.

There are similar commands for the other input gizmos:

set1stInputValue(n)

This command sets the current value for the 1st input gizmo. It is used this way:

set1stInputValue(5);

The above command would set the value of the 1st input gizmo to 5.

This command may be of some value for initializing the value of an input gizmo in the before loop code.

There are similar commands for the other input gizmos:

set1stOutputName('name')

This command displays a name on the 1st output gizmo. Here is an example of its use:

set1stOutputName('distance');

The above code would display the text 'distance' as the name on the 1st output gizmo.

There are similar commands for the other output gizmos:

set1stOutputValue(n)

This command displays a numeric value on the 1st output gizmo. The numeric value is usually held by a variable. Here is an example:

x = 20;
set1stOutputValue(x);

The above code would display the numeric value 20 in the 1st output gizmo.

There are similar commands for the other output gizmos:

setNumDecimals(numDecimals)

This command sets the maximum number of decimals for numeric value output. The last digit printed is rounded.  It works like this:

setNumDecimals(3);

The above code would set all rounded numeric values to be printed to 3 decimal places. So this code:

setNumDecimals(3);
printNumber(1.1115);
printNewLine();
printNumber(1.1114);

Would print this:

1.112
1.111

show1stInput()

This command displays the 1st input gizmo within the input panel. It is used like this:

show1stInput();

There are similar commands for the other input gizmos:

See: hide1stInput()

show1stOutput()

This command displays the 1st output gizmo within the output panel. This is an example of its use:

show1stOutput();

There are similar commands for the other output gizmos:

See: hide1stOutput()


All contents of EZ Math Movie are copyrighted: Copyright 2011, Edward A. Zobel. All rights reserved.



Other sites you may find interesting

Zona Land Education Like Math and Physics?

Zona Land Education offers explanations, diagrams, and animations on these topics.
And it is all presented in a clear and casual manner.

Here is the link: zonalandeducation.com




EZ Programing Demos Want to learn about programing computers?

EZ Programing Demos has an animated, slow motion, interactive programing language demonstrator.
The site presents basic ideas at a beginner's level.

Here is the link: ezprogramingdemos.com



Custom Search