Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I made a very simple case:

testF[x_, y_, z_] = x^2 + y^2 + z^2
Simplify[testF[x, y, z]]

If {x, y, z} is normalized, the simplified result should just be 1. How could I specify this condition/assumption?

share|improve this question
2  
Simplify[testF[x, y, z], Assumptions -> x^2 + y^2 + z^2 == 1] works on my end. –  Rahul Narain Aug 5 '13 at 0:36
3  
This question appears to be off-topic because it is too localized; i.e, it applies only to local situation and needs of its poster. –  m_goldberg Aug 5 '13 at 1:53
    
@m_goldberg do you remember why this question was reopened? Because I can't cast a close vote again. –  Kuba Apr 26 at 8:07
    
@Kuba. No, don't remember. I will write up Narain's comment as community wiki answer. You can up-vote it to get the question off unanswered list. –  m_goldberg Apr 26 at 14:45

1 Answer 1

As Rahul Narain wrote in a comment,

testF[x_, y_, z_] = x^2 + y^2 + z^2;
Simplify[testF[x, y, z], Assumptions -> x^2 + y^2 + z^2 == 1]
1

This may seem trivial, but it precisely expresses the condition for normality.

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.