Procedure
Your task here is to form an appropriate algorithm for understanding the experiment's workflow.
For a pre-built structure, navigate to “PreBuilt”, and click it. After doing so, follow steps a - e:
- Step a: Navigate to the “Help” button and click on it.
- Step b: Navigate to “Theory” in the modal displayed, and read the text for conceptual understanding.
- Step c: Navigate back to the interface.
- Step d: Verify the values in each element/block by clicking the element/block individually.
- Step e: Now, run the simulation and verify the results.
For forming the algorithm yourself, follow steps 1-10:
- Step 1: Navigate to the “Help” button and click on it.
- Step 2: Navigate to “Theory” in the modal displayed, and read the text for conceptual understanding.
- Step 3: Navigate back to the interface.
- Step 4: Use the palette provided on the left to navigate to the drag-drop elements/blocks.
- Step 5: Upon selecting the element/block, drag it to the specified area.
- Step 6: Name the elements/blocks appropriately.
- Step 7: Fill in values for the elements/blocks chosen.
- Step 8: Click on the “Run” button.
- Step 9: Verify the result against manual calculations.
Blocks
Variables
Boolean
A boolean variable is defined. It can have the values set to be true or false
Constant
A constant variable is defined. Any real number can be assigned to the variable defined.
Matrix
A matrix with assigned variable of given number of rows and columns is created. Values can be assigned in the box which will be opened after clicking the OK button.
Identity Matrix
A matrix with assigned variable of given number of rows is created.Values can be assigned in the box which will be opened after clicking the OK button.
Unity Matrix
A unity matrix with assigned variable of given number of rows and columns is created. Values can be assigned in the box which will be opened after clicking the OK button.
Zero Matrix
A Zero matrix with assigned variable of given number of rows and columns is created. Values can be assigned in the box which will be opened after clicking the OK button.
Vector
A vector with assigned variable of given number of elements is created. Values can be assigned in the box which will be opened after clicking the OK button.
Conditionals and Loops
If
An if block is defined with the user defined condition. If the condition is true,then the if block will run.
Else if
An else if block is defined with the user defined condition. If the else if condition is true,then the if block will run. If block is mandatory before an else if block.
Else
An else if block is define.If the if condition is false,then the else block will run. If block is mandatory before an else block.
For
A for loop block is created with specified initiliazed value,condition and increment/decrement value. Default value for initialization is 0 and increment/decrement is 1.
While
A while block is defined with the user defined condition. The while block will run as long as the condition is satisfied.
Break
Break Statement breaks out of a conditional or a loop
Continue
A continue statement ends the current iteration of a loop
Math
Evaluate
Evaluate block evaluates the specified variable with the specified math operations and expressions.
Matrix Evaluate
This block is used to evaluate to matrix elements with the specified operations.
Transpose
In transpose block, the output variable name is assigned with the transpose values of the given matrix block.
Absolute
In Absolute block, the output variable name is assigned with the absolute values of the given variables/operations.
Matrix Operations
Row combine
In row combine block, if two matrices with same column dimension and different/same row dimension are given, the output block gets the combined row values. For example, if matrix A has dimensions 2*2 and matrix B has dimension
3*2, the resultant matrix has dimensions 5*2
Column combine
In column combine block, if two matrices with same row dimension and different/same column dimension are given, the output block gets the combined row values. For example, if matrix A has dimensions 2*2 and matrix B has dimension
2*3, the resultant matrix has dimensions 2*5
Element wise multiply
In this block, the output matrix gets the value of m1 matrix multiplied with m2 matrix element wise.
Element wise divide
In this block, the output matrix gets the value of m1 matrix divided with m2 matrix element wise.
Input/Output
Print Block
Using print block, the output is printed in the output block space. Value is entered for whose the output is to be shown and a message can be entered to get displayed.
Debug output block
This block can be used for debugging.
PreBuiit
PreBuiit
Used to get the prebuilt logic of the given experiment.
Buttons
Up Button
Used to move a block upwards.
Down Button
Used to move a block downwards.
Edit Button
Used to edit a block.
Delete Button
Used to delete a block.
Delete all
Used to delete all blocks.
Drag Button
Used to drag a block
Step in Button
Used when a block is to be indented inside another block.
Step out Button
Used when an indented block is to come out of the indentation.
Run Button
Used to run the logic.