"^" Exponentiation Version 3 (Net)

Action group: Operators


Description

The action is designed to raise a number to the specified degree.

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
Base, aBase value or variable containing baseRobin.Numeric
Yes
Power, bPower value or variable containing power valueRobin.Numeric
Yes
Results
ResultVariable containing the result of the operationRobin.Numeric

Special conditions of use

Root extraction can be done using fractional degree, with the numerator being the degree of the number and the denominator being the degree of the root.

Example of use 

Task 

You need to raise the number 8 to a power of 2, write the result to a numeric variable and display the obtained number in a dialog box. 

Solution

Use the actions "Exponentiation" and "Show message". 

Implementation

  1. Create three numeric variables: "Variable 1" with value = 8, '"Variable 2" with value = 2, "Variable 3" into which the result of the "Exponentiation" action will be written.
     
  2. Move the "Exponentiation" action to the workspace and set its parameters.  

  3. Move the "Show message" action to the workspace and set its parameters.  
  4. Start the robot using the "Start" button in the top panel.

Result 

A dialog box with the total value is displayed on the screen.


  • Нет меток