Geometry Expressions

Cosine Rule App

We create an app which tests the user on the Cosine Rule.

We use random inputs for three variables and a Show/Hide button to conceal/reveal the answer.

First draw a triangle and constrain it by two sides and the included angle.

Picture 1

We now create measurements for these three quantities (these outputs will be displayed in our app), along with the third side.

Picture 2

We can use the variable panel to set bounds for our variables.

Picture 3

When we create the app, we specify that the input variables will acquire random values. The measurement of the third side is concealed and revealed using a Show/Hide button.

Picture 4

Here is the resulting app.