fricas R := Integer
Type: Type
fricas Q := Fraction R
Type: Type
fricas gcd(8,
Type: Equation(PositiveInteger?)
fricas a:=13/6
Type: Fraction(Integer)
fricas b:=3/4
Type: Fraction(Integer)
fricas g:=gcd(a,
Type: Fraction(Integer)
fricas l:=lcm(a,
Type: Fraction(Integer)
fricas g*l = a*b
Type: Equation(Fraction(Integer))
fricas gcd2(x:Q, Type: Void
fricas lcm2(x:Q, Type: Void
fricas g:=gcd2(a, fricas Compiling function gcd2 with type (Fraction(Integer),
Type: Fraction(Integer)
fricas l:=lcm2(a, fricas Compiling function lcm2 with type (Fraction(Integer),
Type: Fraction(Integer)
fricas g*l = a*b
Type: Equation(Fraction(Integer))
fricas gcd3(x:Q, Type: Void
fricas lcm3(x:Q, Type: Void
fricas g:=gcd3(a, fricas Compiling function gcd3 with type (Fraction(Integer),
Type: Fraction(Integer)
fricas l:=lcm3(a, fricas Compiling function lcm3 with type (Fraction(Integer),
Type: Fraction(Integer)
fricas g*l = a*b
Type: Equation(Fraction(Integer))
fricas gcd2(0,
Type: Fraction(Integer)
fricas lcm2(0,
Type: Fraction(Integer)
gcd in fraction fields thread --Bill Page, Tue, 23 May 2017 20:22:26 +0000 reply Ralf suggested this version:
fricas fractionGcd(x, Type: Void
fricas a:=13/6
Type: Fraction(Integer)
fricas b:=3/4
Type: Fraction(Integer)
fricas fractionGcd(a, fricas Compiling function fractionGcd with type (Fraction(Integer),
Type: Fraction(Integer)
|