Run an Algorithm: Difference between revisions

From Engineer-it
No edit summary
No edit summary
Line 1: Line 1:
<nowiki>__NOTOC__</nowiki>
The term ''running an algorithm'' I use to mean doing a set of calculations:
The term ''running an algorithm'' I use to mean doing a set of calculations:


Line 8: Line 10:
# You need to be able to run the algorithm.
# You need to be able to run the algorithm.


==== For example, here's a 'run' of the algorithm for slving for the forces at joint B in the Nodal Analysis key example: ====
==== For example, here's a 'run' of the algorithm for solving for the forces at joint B in the Nodal Analysis key example: ====
{| class="wikitable"
{| class="wikitable"
|+
|+

Revision as of 13:02, 25 December 2020

__NOTOC__

The term running an algorithm I use to mean doing a set of calculations:

drawio: algorithm_intro

What do you need to know to run an algorithm in an examination?

  1. You need to understand the meanings of all variables to an extent that you are able to assign correct values to them.
  2. You need to be able to write down the steps in the algorithm.
  3. You need to be able to run the algorithm.

For example, here's a 'run' of the algorithm for solving for the forces at joint B in the Nodal Analysis key example:

Isolate Joint B
Joint B diagram 2.png

Apply vertical equilibrium:

Substitute for:

Rearrange to find an expression for

Apply horizontal equilbrium:

Divide each term by :

Substitute :

  • (compression)

Solve for :