Module:Rational: Difference between revisions

Plumtree (talk | contribs)
m Optimisations for find_S_expression() and is_square_superparticular()
Plumtree (talk | contribs)
m Bugfix
Line 1,339: Line 1,339:
-- NaN, infinity, zero values use special representations
-- NaN, infinity, zero values use special representations
function p.as_ket(a, frame, skip_many_zeros, only_numbers)
function p.as_ket(a, frame, skip_many_zeros, only_numbers)
skip_many_zeros = skip_many_zeros or true
if skip_many_zeros == nil then
skip_many_zeros = true
end
only_numbers = only_numbers or false
only_numbers = only_numbers or false
if type(a) == 'number' then
if type(a) == 'number' then