Garlando

5 Reputation

2 Badges

12 years, 322 days

MaplePrimes Activity


These are questions asked by Garlando

I have a module to overload the * operator for the function f such that:

a*f(b,c,d) = f(a*b,a*c,a*d)

FPackage :=  module()option package;    export `*`;    `*` :=    overload    (      [        proc(a::algebraic, b::specfunc(anything, f))          option overload;          map2(:-`*`, a, b...

I would like to define a function f(a,b,c,....) sub that x * f(a,b,c,...) would return f(x*a,x*b,x*c,...). Is this something that is simple to do in the function definition or do I need to create a rule to apply?

Page 1 of 1