f::mul (public)

 f::mul n fraction

Defined in packages/acs-tcl/tcl/ad-functional-procs.tcl

Multiplies n with a fraction (given as a tuple)

Parameters:
n (required)
fraction (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_functional_api functional_api (test acs-tcl) f::mul f::mul test_functional_api->f::mul f::fst f::fst (private) f::mul->f::fst f::gcd f::gcd (public) f::mul->f::gcd f::snd f::snd (private) f::mul->f::snd

Testcases:
functional_api
Source code:
    set num [fst $fraction]
    set denom [snd $fraction]
    set g [gcd $n $denom]
    expr {($n/$g)*$num/($denom/$g)}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: