Info

This question is closed. Reopen it to edit or answer.

How simplification work?

1 view (last 30 days)
Milan Kumar
Milan Kumar on 3 Oct 2015
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi,
I will share the code.
>> dw=(((the)/(2*st*sw))*(pr-pt)*(pr-pt))+(the*(1-((pr-pt)/st))*((pr-pt)/sw))
dw =
(the*(m - pr + w)^2)/(2*st*sw) - (the*((m - pr + w)/st + 1)*(m - pr + w))/sw
>> y=the*(((pr-pt)/sw)-((pr-pt)^2/(2*st*sw)))
y =
-the*((m - pr + w)/sw + (m - pr + w)^2/(2*st*sw))
>> x=dw-y
x =
the*((m - pr + w)/sw + (m - pr + w)^2/(2*st*sw)) - (the*((m - pr + w)/st + 1)*(m - pr + w)
Upon rearranging 'dw', we find that it is equal to 'y'. Hence, 'x' should be equal to zero. But that is not happening. Can anyone expain why!!

Answers (0)

Community Treasure Hunt

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

Start Hunting!