In this example, you learn how to compute exponentials and square roots on your numeric data. |
Functions:
Source:
The dataset below contains values for x and y:
X | Y |
---|---|
3 | 4 |
4 | 9 |
8 | 10 |
30 | 40 |
Transformation:
You can use the following transformation to generate values for z^{2}.
NOTE: Do not add this step to your recipe right now. |
You can see how column Z is generated as the sum of squares of the other two columns, which yields z^{2}.
Now, edit the transformation to wrap the value computation in a SQRT
function. This step is done to compute the value for z, which is the distance between the two points based on the Pythagorean theorem.
Results:
X | Y | Z |
---|---|---|
3 | 4 | 5 |
4 | 9 | 9.848857801796104 |
8 | 10 | 12.806248474865697 |
30 | 40 | 50 |