remove readthedocs references
This commit is contained in:
@@ -199,7 +199,7 @@ end
|
||||
The conditions for the `if` statements are expressions that evaluate to either `true` or `false`, such as generated by the Boolean operators `<`, `<=`, `==`, `!-`, `>=`, and `>`.
|
||||
|
||||
|
||||
If familiar with `if` conditions, they are natural to use. However, for simpler cases of "if-else" `Julia` provides the more convenient *ternary* operator: `cond ? if_true : if_false`. (The name comes from the fact that there are three arguments specified.) The ternary operator checks the condition and if true returns the first expression, whereas if the condition is false the second condition is returned. Both expressions are evaluated. (The [short-circuit](https://docs.julialang.org/en/v1/manual/control-flow/#Short-Circuit-Evaluation) operators can be used to avoid both evaluations.)
|
||||
If familiar with `if` conditions, they are natural to use. However, for simpler cases of "if-else" `Julia` provides the more convenient *ternary* operator: `cond ? if_true : if_false`. (The name comes from the fact that there are three arguments specified.) The ternary operator checks the condition and if true returns the first expression, whereas if the condition is false the second condition is returned. (Another useful control flow construct is [short-circuit](https://docs.julialang.org/en/v1/manual/control-flow/#Short-Circuit-Evaluation) evaluation.)
|
||||
|
||||
|
||||
For example, here is one way to define an absolute value function:
|
||||
@@ -1129,6 +1129,11 @@ answ = 2
|
||||
radioq(choices, answ, keep_order=true)
|
||||
```
|
||||
|
||||
:::{.callout-note}
|
||||
## Note
|
||||
The parentheses in `(sin ∘ cos)(pi/4)` are needed due to the order of operations, with `cos(pi/4)` being evaluated first in the expression `sin ∘ cos(pi/4)`. Alternatively, one can define a function `sc = sin ∘ cos` (without parentheses), then call it through `sc(pi/4)`.
|
||||
:::
|
||||
|
||||
###### Question
|
||||
|
||||
|
||||
@@ -1344,4 +1349,3 @@ The interval is a nearly exact estimate, as guaranteed by `IntervalArithmetic`.
|
||||
"""]
|
||||
radioq(choices, 1)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user