XgCe[^ŕ\镡f[^xɏłuÖٓI}bsOv
uo}bsOvƂXNvgłB

 * xWGȐ̊֐𐶐 math.bezier() ܂
{{{
# generates bezier functions f_x(t:number) and f_y(t:number)
# from a list of points:
# [6, 12], [10, 4], [16, 6], [20, 10]
[f_x, f_y] = math.bezier([6, 10, 16, 20], [12, 4, 6, 10])
# prints a list of points on a bezier curve
t = interval(0, 1, 50)  # 0 <= t <= 1, 50 samples
println(format("[%f,%f]", f_x(t), f_y(t)).join(", "))
}}}
 * ֐ math.diff() ܂B
{{{
>>> f = `(x ** 2 * math.sin(x))
>>> math.diff(f, `x)
`(2 * x * math.sin(x) + x ** 2 * math.cos(x))
>>> g(x) = !!math.diff(f, `x) # use !! operator to force evaluation before function assignment
}}}
 * œK֐ math.optimize() ܂ (܂ł悭܂)B
 * xNg̃hbgςvZ math.dot_product() ܂B
 * xNg̃NXςvZ math.cross_product() ܂B
 * UlvZ list#variance(), iterator#variance() ܂B
 * JԂ֐ for(), cross() ɂāAzvf̓WJł悤ɂ܂B
{{{
for ([x, y] in [[1, 2], [3, 4], [5, 6]]) { printf("%d-%d\n", x, y) }
}}}
 * ɃXgw肳ꂽ֐ɃCe[^nƂALXg@\ǉ܂B
