# Revision history [back]

### Norm in a quadratic space

Hi

I'm working in a vector space where the inner product is not the usual one and I would need to access directly to the norm induced by inner product. I found how to create such a space but the 'norm' function gives me the usual norm, which is not the one I want.

Here is an example :

SP=matrix(QQ,[[2,0],[0,3]])
V=VectorSpace(QQ,2,inner_product_matrix=SP)


What I want to compute is e.g.

e0=V.0
e0.inner_product(e0)


while e0.norm() gives me 1 (wrong answer for me)

I assume this should be possible directly. Any idea how ?

Thanks,