grzegorzmazur / yacas

Computer calculations made easy
http://www.yacas.org
GNU Lesser General Public License v2.1
130 stars 24 forks source link

Oddity of linear functions #328

Closed h-v-smacker closed 3 years ago

h-v-smacker commented 3 years ago

Check of oddity for a linear function y=kx+b, b=0 returns false when k≠1, even though all linear functions passing through (0,0) are odd:

IsOddFunction(x,x) True IsOddFunction(2*x,x) False

This doesn't affect y=k/x functions, however:

IsOddFunction(1/x,x) True IsOddFunction(2/x,x) True IsOddFunction(2*1/x,x) True

Applicable to both yacas online and Ryacas 1.1.3.1.

grzegorzmazur commented 3 years ago

Thanks for reporting :)

Cheers, Grzesiek