This content is licensed under Creative Commons Attribution/Share-Alike License 3.0 (Unported). That means you may freely redistribute or modify this content under the same license conditions and must attribute the original author by placing a hyperlink from your site to this work https://planetcalc.com/711/. Also, please do not modify any references to the original work (if any) contained in this content.
Visitors keep asking about a calculator which would compute the area of a convex quadrilateral given its sides. This is mathematically impossible. However, you can find a convex quadrilateral area, given quadrilateral diagonal values and the value of the angle between them.
The calculator for the formula is below. After the calculator, I describe the process of creating a calculator using this site's engine.
To create a calculator, you first should log in to the site. Then, in the "Personal section", you should choose the "Create" -> "Calculator" menu item.
You will get this form
The calculator, basically, is the thing, which receives user input and converts it to output values. So, for our calculator, we need three input parameters: two diagonals and an angle. We have to describe them for the engine.
Choose "Input" -> "Add new input parameter" in menu. You will get an input parameter editor, which should be filled as on the picture.
Repeat for the second parameter
For the third parameter, use range features and limit allowed values range from 0 to 180 degrees.
Note that each time you change the parameters, the signature of function "Calculate" is changed to reflect those.
Now you have to describe the output parameter. Choose "Output" -> "New output parameter" and fill the form as below.
Note that input parameters can be used directly. However, the output parameter is an object, and the only way to assign value to it is to use its special method, "SetValue".
Code which calculates area:
The second line: note the usage of SetValue to assign calculation results.
Now you can press "Preview". This button allows you to preview and test the calculations and also saves the calculator source on site.
Now you can publish the calculator using the button "Publish". After publishing, your calculator will get a constant URL, and the calculator will be available for everyone.
The final step is to create an article that describes the calculator. Article lets you educate visitors about your calculator, its purpose, and details of the calculation. To create an article, you should choose "Create" -> "Article" in the "Personal Section". Then you write some text and insert the calculator into your article, using the "Calculator" button on the toolbar.