"The code examples are grouped together along certain themes. They can all be accessed below:\n",
"\n",
"- ## Conditionals \n",
"> Set of examples to demonstrate conditional statements (if elif else)\n",
"\n",
"Set of examples to demonstrate conditional statements (if elif else)\n",
"Take these and work / modify them and explore what happens:\n",
"\n",
">> [OneWayConditional](OneWayConditional.ipynb): Simple one way (if) conditional.\n",
">> [TwoWayConditional](TwoWayConditional.ipynb): Simple two way (if else) conditional\n",
">> [RootTwo](RootTwo.ipynb): Simply math.sqrt(x)**2 = x test to show the dangers of using test on floats; also the solution.\n",
">> [ThreeWayConditional](ThreeWayConditional.ipynb): Basic if elfi else structure, look at this carefully and understand it.\n",
">> [ComplexQuadrant](ComplexQuadrant.ipynb): Determine the quadrant of a complex numbers with a conditional chain in a function with multiple return options. \n",
">> [InsideSphere](InsideSphere.ipynb): Two way conditional in function and main program to test if a point is within a sphere.\n",
">> [FunctionCall](FunctionCall.ipynb): Example with function calls if conditional tests, a bit tricky, but important concepts here.\n",
"> [OneWayConditional](OneWayConditional.ipynb): Simple one way (if) conditional.\n",
"\n",
"> [TwoWayConditional](TwoWayConditional.ipynb): Simple two way (if else) conditional\n",
"\n",
"> [RootTwo](RootTwo.ipynb): Simply math.sqrt(x)**2 = x test to show the dangers of using test on floats; also the solution.\n",
"\n",
"> [ThreeWayConditional](ThreeWayConditional.ipynb): Basic if elfi else structure, look at this carefully and understand it.\n",
"\n",
"> [ComplexQuadrant](ComplexQuadrant.ipynb): Determine the quadrant of a complex numbers with a conditional chain in a function with multiple return options. \n",
"\n",
"> [InsideSphere](InsideSphere.ipynb): Two way conditional in function and main program to test if a point is within a sphere.\n",
"\n",
"> [FunctionCall](FunctionCall.ipynb): Example with function calls if conditional tests, a bit tricky, but important concepts here.\n",
"\n",
"- File\n",
"- Format\n",
...
...
%% Cell type:markdown id:52c89cc7 tags:
# Code Examples
The code examples are grouped together along certain themes. They can all be accessed below:
- ## Conditionals
> Set of examples to demonstrate conditional statements (if elif else)
Set of examples to demonstrate conditional statements (if elif else)
Take these and work / modify them and explore what happens:
>> [OneWayConditional](OneWayConditional.ipynb): Simple one way (if) conditional.
>> [TwoWayConditional](TwoWayConditional.ipynb): Simple two way (if else) conditional
>> [RootTwo](RootTwo.ipynb): Simply math.sqrt(x)**2 = x test to show the dangers of using test on floats; also the solution.
>> [ThreeWayConditional](ThreeWayConditional.ipynb): Basic if elfi else structure, look at this carefully and understand it.
>> [ComplexQuadrant](ComplexQuadrant.ipynb): Determine the quadrant of a complex numbers with a conditional chain in a function with multiple return options.
>> [InsideSphere](InsideSphere.ipynb): Two way conditional in function and main program to test if a point is within a sphere.
>> [FunctionCall](FunctionCall.ipynb): Example with function calls if conditional tests, a bit tricky, but important concepts here.
> [OneWayConditional](OneWayConditional.ipynb): Simple one way (if) conditional.
> [TwoWayConditional](TwoWayConditional.ipynb): Simple two way (if else) conditional
> [RootTwo](RootTwo.ipynb): Simply math.sqrt(x)**2 = x test to show the dangers of using test on floats; also the solution.
> [ThreeWayConditional](ThreeWayConditional.ipynb): Basic if elfi else structure, look at this carefully and understand it.
> [ComplexQuadrant](ComplexQuadrant.ipynb): Determine the quadrant of a complex numbers with a conditional chain in a function with multiple return options.
> [InsideSphere](InsideSphere.ipynb): Two way conditional in function and main program to test if a point is within a sphere.
> [FunctionCall](FunctionCall.ipynb): Example with function calls if conditional tests, a bit tricky, but important concepts here.