Difference between revisions of "Examples"
| (6 intermediate revisions by the same user not shown) | |||
| Line 41: | Line 41: | ||
==Examples of Java and z3 Programs== | ==Examples of Java and z3 Programs== | ||
| − | '''Check if number is Odd/Even'''<br> | + | '''ExampleR1: Check if number is Odd/Even'''<br> |
<span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes1a <span style="color:blue;"> Java code]</span><br> | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes1a <span style="color:blue;"> Java code]</span><br> | ||
| − | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/ | + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes1b <span style="color:blue;"> z3 code]</span> |
| + | |||
| + | '''ExampleR2: Sum of a given Array'''<br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes2a <span style="color:blue;"> Java code]</span><br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes2b <span style="color:blue;"> z3 code]</span> | ||
| + | |||
| + | '''ExampleR3: Linear Search'''<br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes3a <span style="color:blue;"> Java code]</span><br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes3b <span style="color:blue;"> z3 code]</span><br> | ||
| + | |||
| + | '''ExampleR4: Floyd's Triangle'''<br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes4a <span style="color:blue;"> Java code]</span><br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes4b <span style="color:blue;"> z3 code]</span><br> | ||
| + | |||
| + | '''ExampleR5: Reverse Number'''<br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes5a <span style="color:blue;"> Java code]</span><br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes5b <span style="color:blue;"> z3 code]</span><br> | ||
| + | |||
| + | '''ExampleR6: Calculate the Factorial of a number'''<br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes6a <span style="color:blue;"> Java code]</span><br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes6b <span style="color:blue;"> z3 code]</span><br> | ||
| + | |||
| + | '''ExampleR7: Area of Rectangle'''<br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes7a <span style="color:blue;"> Java code]</span><br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes7b <span style="color:blue;"> z3 code]</span><br> | ||
| + | |||
| + | '''ExampleR8: Display Prime Numbers'''<br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes8a <span style="color:blue;"> Java code]</span><br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes8b <span style="color:blue;"> z3 code]</span><br> | ||
| + | |||
| + | '''ExampleR9: Ascending Order'''<br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes9a <span style="color:blue;"> Java code]</span><br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes9b <span style="color:blue;"> z3 code]</span><br> | ||
| + | |||
| + | '''ExampleR10: Inputting Matrix and Calculating it's Inverse'''<br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes10a <span style="color:blue;"> Java code]</span><br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes10b <span style="color:blue;"> z3 code]</span><br> | ||
| + | |||
| + | '''ExampleR11: Inputting 2 Matrices and Calculating Sum,Difference and Product'''<br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes11a <span style="color:blue;"> Java code]</span><br> | ||
| + | <span class="plainlinks">[http://wiki.zcubes.com/Manuals/calci/Examples#z3codes11b <span style="color:blue;"> z3 code]</span><br><br> | ||
==Unit Conversion Examples== | ==Unit Conversion Examples== | ||
Latest revision as of 02:44, 15 February 2018
DESCRIPTION
- Basic Engineering examples in z3.
- z3 codes with z3 notations are shown below.
Engineering Examples
ExampleS1: Chemical Engineering
LengthParallelContraFlow
z3 code: Normal Calculation without using Function
z3 code: Using Function
z3 code: Multi-calculation Using Function(variable diameter)
z3 code: USING EXAMPLE1 function SOLUTION IN EXAMPLE2 function
ExampleS2: Civil Engineering
HoopStress
z3 code: Using Function
ExampleS3: Civil Engineering
InternalForce
z3 code: Normal Calculation without using Function
z3 code: Using Function
z3 code: USING EXAMPLE1 function SOLUTION IN EXAMPLE2 function
ExampleS4: Civil Engineering
NotchDesign
z3 code: Using Function
ExampleS5: Engineering Economics
RateOfEarnings
z3 code: Using Function
ExampleS6: Fluid Mechanics
BernoullisPressure
z3 code: Using Function
z3 code: Multi-calculation Using Function(variable diameter)
Examples of Java and z3 Programs
ExampleR1: Check if number is Odd/Even
Java code
z3 code
ExampleR2: Sum of a given Array
Java code
z3 code
ExampleR3: Linear Search
Java code
z3 code
ExampleR4: Floyd's Triangle
Java code
z3 code
ExampleR5: Reverse Number
Java code
z3 code
ExampleR6: Calculate the Factorial of a number
Java code
z3 code
ExampleR7: Area of Rectangle
Java code
z3 code
ExampleR8: Display Prime Numbers
Java code
z3 code
ExampleR9: Ascending Order
Java code
z3 code
ExampleR10: Inputting Matrix and Calculating it's Inverse
Java code
z3 code
ExampleR11: Inputting 2 Matrices and Calculating Sum,Difference and Product
Java code
z3 code
Unit Conversion Examples
ExampleP1: FrictionFactor
z3 code: Solution with SI units
Solution with SI and Imperial units
Solution with imperial units
ExampleP2: ReynoldsNumber
z3 code: Solution with SI units
Solution with SI and Imperial units
Solution with imperial units
ExampleP3: FouriersLaw
z3 code: Solution with SI units
Solution with SI and Imperial units
Solution with imperial units
ExampleP4: MaximumHeight
z3 code: Solution with SI units
Solution with SI and Imperial units
Solution with imperial units
ExampleP5: DopplerEffect
z3 code: Solution with SI units
Solution with SI and Imperial units
Solution with imperial units
ExampleP6: CircularSegmentArea
z3 code: Solution with SI units
Solution with SI and Imperial units
Solution with imperial units
ExampleP7: CoulombsLaw
z3 code: Solution with SI units
Solution with SI and Imperial units
Solution with imperial units