`coxeter/text/iprod` := TEXT(`    `,
`FUNCTION:  iprod - inner product of vectors `,`    `,
`CALLING SEQUENCE:  iprod(u,v);`,`    `,
`PARAMETERS:  u,v = linear combinations of e1,e2,...`,`   `,`SYNOPSIS:   `,
`  A "vector" (distinct from the vector data structure used by Maple) is a`,
`  linear combination of the standard orthonormal basis e1,e2,e3,..., with`,
`  coefficients that are rational or floating-point.`,`   `,
`  If u and v are vectors, iprod(u,v) returns the inner product of u and v.`,
`   `,
`  While u must have coefficients that are rational or floating-point, this`,
`  requirement is not necessary for v. All that is required for v is that`,
`  the function calls coeff(v,e1), coeff(v,e2),...  return valid answers. `,
`   `,`EXAMPLES:   `,
`  iprod(e1+e2,e1-2*e2+e3);           yields                -1`,
`  iprod(e1+e2,a*e1+b*e2+c*e3);       yields                a+b`,
`  r:=highest_root(D4);`,
`  map(iprod,base(D4),r);             yields             [0,0,1,0]`,`    `,
`SEE ALSO:  reflect, root_coords, weyl[weight_coords]`):

if `+`(0)=0 then # Maple V.4 or later
  print(INTERFACE_HELP(insert, topic=`coxeter/iprod`,
  helpfile=HomeLib, text=`coxeter/text/iprod`))
elif ceil(0)=0 then # Maple V.2 or V.3
  `help/coxeter/text/iprod`:=`coxeter/text/iprod`:
  save `help/coxeter/text/iprod`, cat(HomeLib,`/help/coxeter/text/iprod.m`);
fi:
