def a = args.a
def b = args.b
def c = args.c
def d = args.d
Algorithm Tab (search for Heron)
drag into code window: Area of a Triangle from Length of Three Sides
def area = execEquation("e6cb980b-da27-11e2-8e97-bc764e04d25f",<a>,<b>,<c>) //Area of a Triangle from Length of Three Sides
remove <> for a, b, c
def area = execEquation("e6cb980b-da27-11e2-8e97-bc764e04d25f",a,b,c) //Area of a Triangle from Length of Three Sides
return area
Algorithm Tab (Input Parameter Window on bottom: Notice Datatypes: decimals, integers, strings, vectors, matrices or arrays. Notice Units: 600+ in over 50 categories)
Markup [leave blank] Label: (a)"Side a of Triangle" Instructions: Enter the length. Units: Select Length, Select ft , Check m, cm, in, ft, yd
Markup [leave blank] Label: (b)"Side b of Triangle" Instructions: Enter the length. Units: Select Length, Select ft , Check m, cm, in, ft, yd
Markup [leave blank] Label: (c)"Side c of Triangle" Instructions: Enter the length. Units: Select Length, Select ft , Check m, cm, in, ft, yd
Markup [leave blank] Label: (d)"Depth of Triangle " Instructions: Enter the length. Units: Select Length, Select in , Check m, cm, in, ft, yd
Test Tab
Enter values for a= 3, b = 4, c =5 and d =6, and select Pass/Fail
Click on circle+ to add the test case
Click on play button to execute test. Answer should be 0.55741824 m²
Algorithm Tab
area = area.to("ft^2")
Test Tab
rerun test, and answer is 6.0 ft²
Algorithm Tab
insert more code after area = area.to("ft^2")
def v = area * d
v = v.to("yd^3")
return v
Test Tab
rerun test, and answer is 0.111111 yd3
Info Tab
Check Public box.
Wiki Editor: Select Standard Equation Template Click Insert
Edit as you wish.
Save Equation
Add to Collection
Create ∇ Constant: Soil Cost
Algorithm Tab
def c = 5.26."USD"/1.0."ft^3"
Test Tab
create and execute test
Save Constant
Add to Collection
Create ∇ Calculator: My Calc
Info Tab:
Public: check box
Name: [Your Name First Calc]
Layout Tab: Lots of controls on formats, labels and colors.
Select 2 rows and click Update
Search for "soil cost"
Drag onto buttons
Save Calculator
Add to Collection
Refresh Screen
Scroll to bottom
Calculator references 2 pages
Calculator used in 1 page
Click on Collection
Your Collection
Buttons for equations and constants on right side.
List of all items on bottom.
In a new window Search for Triangle Calculators List
Copy UUID
Your Collection
Info Tab
Insert Wikiclip
0b9e64cc-0ad5-11ee-b65f-bc764e203090
Save Collection
No comments |