class Pascal::Row
- Pascal::Row
- Reference
- Object
Overview
store one row of the pascal triangle
Defined in:
pascal.crConstructors
Instance Method Summary
-
#draw(ctx)
svg output
- #drawSize : Float64
- #drawSize=(drawSize : Float64)
-
#modify(&)
run a calculation on a row's
@nums
; the result is stored in@mods
- #mods : Array(BigInt)
-
#modulo(m)
set
@mods
to be@nums modulo m
-
#next
compute the next row of the triangle
- #nums : Array(BigInt)
-
#output(stream = STDOUT)
text output
- #palette : Colors::Palette
- #palette=(palette : Colors::Palette)
- #rowNumMax : Int128
- #rowNumMax=(rowNumMax : Int128)