LEGO® Powered UP App Math blocks explained

A list of math blocks with short descriptions. This is not official documentation. Names and descriptions were created after running experiments and observing the app and component’s behavior.

Multiple hubs

Select a hub out of the list of hubs, select a specific port

Read variable

Read specific variable assigned to a cursive letter or special symbol

Update variable

Udapate specific variable assigned to a cursive letter or special symbol

Read global variable

Read specific global variable assigned to a cursive letter or special symbol

Update global variable

Udapate specific global variable assigned to a cursive letter or special symbol

Output random number

Output random number from a range of numbers

Output equality check

Output true if both numbers are equal

Output number is less than

Output true if the first value is less than the second value

Output number is more than

Output true if the first value is more than second value

Output number does not equal

Output true if the first value is not equal to the second value

Output check for 2 true statements

Output true only if both values are true

Output check for one of true statements

Output true if either first or second values are true

Output sum result

Output result of first value added to second value

Output subtraction result

Output result of the second value subtracted from the first value

Output multiplication result

Output result of the multiplication

Output division result

Output result of the first value divided by the second value

Output result of math operator and a number value

Output result of math operator (first value) and a number (second value)

Output 2 argument arctangent value

Output result of 2 argument arctangent

Output number exponent

Output result of first value to the power of second value

Output biggest number of 2

Output biggest number of 2

Output smallest number of 2

Output smallest number of 2

Output modulo

Output modulo of first value divided by second value

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *