From: dan h. <zm...@us...> - 2024-08-21 11:33:20
|
But strangely enough the following give correct answer. **``** [rombergmin:4,romberg(abs(sin(x)),x,-1,1),romberg(sqrt(sin(x)^2),x,-1,1) ,romberg(signum(sin(x))*sin(x),x,-1,1)]; while replacing sin(x) by x or x^3 all gave wrong answer of 0. But plain integrate(...) or absint(...) all gave wrong answer but ~~~ [load(fourie),absint(signum(sin(x))*sin(x),x,-1,1) ,"ck"=ev(2*integrate(sin(x),x,0,1),numer) ] ; ~~~ Did not give answer 0 but gave a positive wrong answer and can one explain this; ~~~ [ev(absint(sqrt(sin(x)^2),x,-1,0),numer),ev(absint(sqrt(sin(x)^2),x,0,1) ,numer)]; ~~~ both gave different positive answers with of course the 2nd one correct. --- **[bugs:#4351] absolute value, integral** **Status:** open **Group:** None **Labels:** integrate **Created:** Tue Aug 20, 2024 07:38 PM UTC by dan hayes **Last Updated:** Wed Aug 21, 2024 11:24 AM UTC **Owner:** nobody "branch_5_44_base_231_g5c411f69f",timestamp="2021-01-12 23:51:42",host="x86_64-w64-mingw32",lisp_name="SBCL",lisp_version="2.0.0",maxima_userdir="C:/Users/zmth1/maxima",maxima_tempdir="C:/Users/zmth1/AppData/Local/Temp",maxima_objdir="C:/Users/zmth1/maxima/binary/branch_5_44_base_231_g5c411f69f/sbcl/2_0_0",maxima_frontend="wxMaxima",maxima_frontend_version="20.12.2-DevelopmentSnapshot_MSW_OpenMP201511+Locks") Not positively sure this is a bug but anyway: ~~~ ~~~ [integrate(abs(x),x,-1,1),absint(abs(x),x,-1,1)]; ~~~ ~~~ For the first one it seems to ignore the abs, absolute value prefix and gives wrong answer of 0, no warnings,no comments etc. Second one absint in my help file is supposed to be a function . Doesn't say i have to load fourier or anything like that but it just gives a repeat of the exact words of the function absint(...) without doing any evaluation. Am i missing something or do later versions of maxima do the same thing ? --- Sent from sourceforge.net because max...@li... is subscribed to https://sourceforge.net/p/maxima/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/maxima/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |