| 1 | initial version |
Your expressions are ill defined. A python function does the job
def inner_product(f,g): return integral(f*g, (x,-pi,pi))
Thus
inner_product(sin(3*x),sin(3*x))
returns $\pi$.
See here for symbolic computation.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.