@@ -540,7 +540,7 @@ primitive!(
540
540
/// [un][shape] creates an array of incrementing elements with the given shape.
541
541
/// ex: °△ 2_3_4
542
542
///
543
- /// Subscripted [shape] gets the shape from the first few axes
543
+ /// Subscripted [shape] gets the shape from the first few axes.
544
544
/// ex: △₂ °△2_3_4_5
545
545
///
546
546
/// It is a triangle`△` because a triangle is a shape.
@@ -2244,7 +2244,7 @@ primitive!(
2244
2244
/// Repeat a function while a condition holds
2245
2245
///
2246
2246
/// The first function is the loop function, and it is run as long as the condition is true.
2247
- /// The second function is the condition. It's top return value must be a boolean.
2247
+ /// The second function is the condition. Its top return value must be a boolean.
2248
2248
/// ex: ⍢(×2|<1000) 1
2249
2249
/// Return values from the condition function that are under the condition itself will be passed to the loop function.
2250
2250
/// Here is an example that evaluates a [Collatz sequence](https://en.wikipedia.org/wiki/Collatz_conjecture).
@@ -2256,7 +2256,6 @@ primitive!(
2256
2256
/// ex: ⍢(×3|<100) 1
2257
2257
/// : ⍢(×3|<100.) 1
2258
2258
/// The net stack change of the two functions, minus the condition, is called the *composed signature*.
2259
- /// The composed signatures of the above examples all have a net stack change of `0`.
2260
2259
/// A composed signature with a positive net stack change is only allowed inside an array.
2261
2260
/// ex: ⍢(⊸×2|≤1000) 10
2262
2261
/// ex: ⍢(.×2|≤1000) 10
@@ -3033,12 +3032,12 @@ primitive!(
3033
3032
/// : # √x → 1/(2√x)
3034
3033
/// : ∂√ 1/9
3035
3034
/// ex: # Experimental!
3036
- /// : # x² - 2x - 4 → 2x² - 2x
3035
+ /// : # x² - 2x - 4 → 2x - 2
3037
3036
/// : ∂(++⊃(ⁿ2|ׯ2|¯4)) [0 1 2]
3038
3037
/// [derivative][sine] is a simple way to make a cosine function.
3039
3038
/// ex: # Experimental!
3040
3039
/// : # sin(x) → cos(x)
3041
- /// : ⍜×⁅1e3 ∂∿ ×τ÷⟜⇡8
3040
+ /// : ⁅₃ ∂∿ ×τ÷⟜⇡8
3042
3041
/// Most derivatives that would require the chain or product rule are not supported.
3043
3042
/// ex! # Experimental!
3044
3043
/// : # xsin(x) → sin(x) + xcos(x)
@@ -3052,7 +3051,7 @@ primitive!(
3052
3051
( [ 1 ] , Derivative , Algorithm , ( "derivative" , '∂' ) , { experimental: true } ) ,
3053
3052
/// Calculate an antiderivative of a mathematical expression
3054
3053
///
3055
- /// Basic polynomials are supported, along with [sine] and [logarithm] .
3054
+ /// Basic polynomials are supported, along with [sine].
3056
3055
/// ex: # Experimental!
3057
3056
/// : # x² → x³/3
3058
3057
/// : ∫(×.) 3
0 commit comments