"^" 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
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Base, a | Base value or variable containing base | Robin.Numeric | Yes | |
Power, b | Power value or variable containing power value | Robin.Numeric | Yes | |
Results | ||||
Result | Variable containing the result of the operation | Robin.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
- 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.
- Move the "Exponentiation" action to the workspace and set its parameters.
- Move the "Show message" action to the workspace and set its parameters.
- Start the robot using the "Start" button in the top panel.
Result
A dialog box with the total value is displayed on the screen.
Обзор
Инструменты контента