필터 지우기
필터 지우기

Is there a reason MuPad doesn't find the obvious cancellation?

조회 수: 1 (최근 30일)
Billy
Billy 2011년 6월 17일
I have:
f := 1/2* sqrt( 16-x^2 )
df := diff( f, x )
simplify( f * sqrt( 1 + df^2 ) )
mupad doesn't find the obvious cancellation (sqrt( 16-x^2 ) should go away)
Why not? Is there an algebraic reason I'm missing, or am I using the simplify function incorrectly, or is it something else?

채택된 답변

Matt Tearle
Matt Tearle 2011년 6월 17일
I'm guessing it's something to do with assumptions about squares and square roots, and maybe denominators. Wouldn't swear to it, though. If you want it to do what you'd probably do by hand, you can try this:
Simplify(f * sqrt( 1 + df^2 ),IgnoreAnalyticConstraints)
(Note the capital S)
  댓글 수: 1
Billy
Billy 2011년 6월 17일
Thank you, this is a very nice feature (capital S- Simplify)

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2011년 6월 17일
In particular sqrt(t) * sqrt(1/t) does not cancel if t is 0. Or in your case, if x = +/- 4

카테고리

Help CenterFile Exchange에서 Get Started with MuPAD에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by