Version: 0.9 (using 4.4.1 (KDE 4.4.1), Chakra) Compiler: gcc OS: Linux (i686) release 2.6.32-ARCH Try to insert a function like this: http://www.wolframalpha.com/input/?i=%282x^2-x^3%29^%281%2F3%29 KAlgebra will stop drawing it for x = 4, while the function obviously has R as domain.
Well, this is happening because std::power is returning nan, I'll have to investigate better why. Thanks for the report :)
And it's returning that because there's some imaginary part, of course... I guess we'll have to wait until we support imaginary numbers to support such feature
On Sunday 02 May 2010 05:44:32 Aleix Pol wrote: > And it's returning that because there's some imaginary part, of course... > > I guess we'll have to wait until we support imaginary numbers to support > such feature Well, there's ALSO an imaginary part, but not just it... So I think that at least that the real part should be shown... :) Bye, -Riccardo
Still to do! Mental note: use complex class when pow(a,b) if a<0 and b is not an integer.
I guess the given equation is real for x belongs to (0,2) and for [2,infinity) U (-infinity,0] It will have imaginary components as well .
Git commit fde6bdfb0114d384c1ad258fd351f4558ea63e09 by Aleix Pol. Committed on 28/10/2013 at 20:28. Pushed by apol into branch 'master'. Support roots with an imaginary part Related: bug 302813 M +7 -3 analitza/operations.cpp M +5 -3 analitza/tests/analitzatest.cpp http://commits.kde.org/analitza/fde6bdfb0114d384c1ad258fd351f4558ea63e09