Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Consider the code:

n1 := Cos[α] Sin[β]
n2 := Sin[α] Sin[β]
n3 := Cos[β]
n := {n1, n2, n3}
Norm[n]

Why the result is

Sqrt[Abs[Cos[β]]^2 + Abs[Cos[α] Sin[β]]^2 + Abs[Sin[α] Sin[β]]^2]

that is $$\sqrt{\left| \sin (\alpha ) \sin (\beta )\right| ^2+\left| \cos (\alpha ) \sin (\beta )\right| ^2+\left| \cos (\beta )\right| ^2}$$

instead of $1$?

How to compute the norm in a symbolic way simplifying some trigonometric identities?

share|improve this question
up vote 5 down vote accepted
n1 := Cos[α] Sin[β]
n2 := Sin[α] Sin[β]
n3 := Cos[β]
n := {n1, n2, n3}

FullSimplify[Norm[n], {α, β} ∈ Reals]

(* 1 *)
share|improve this answer

For real values, there is another way, because then you don't need the Abs which is created by Norm. It is simply

Simplify[Sqrt[n.n]]

(* 1 *)
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.