Skip to content

Conversation

msakai
Copy link
Contributor

@msakai msakai commented Apr 6, 2013

It seems those fabs() are unnecessary: fabs(T[q][n+m]-t), fabs(T[j][n+m]-t), fabs(T[m][p]-t), fabs(T[m][i]-t).
By definition t must be smaller than all of T[q][n+m], T[j][n+m], T[m][p] and T[m][i], hence the arguments of the fabs() invocations are always positive.

It seems those fabs() are unnecessary: fabs(T[q][n+m]-t), fabs(T[j][n+m]-t), fabs(T[m][p]-t), fabs(T[m][i]-t).
By definition t must be smaller than all of T[q][n+m], T[j][n+m], T[m][p] and T[m][i], hence the arguments of the fabs() invocations are always positive.
spaghetti-source pushed a commit that referenced this pull request Apr 6, 2013
remove unnecessary fabs() invocations.
@spaghetti-source spaghetti-source merged commit a706095 into spaghetti-source:master Apr 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants