π
<-
Chat plein-écran
[^]

Integration tests on 3 top-model CAS systems

Discussions scientifiques et scolaires

Re: Integration tests on 3 top-model CAS systems

Message non lude quinyu » 08 Juin 2015, 00:18

#18: mod as it is in not defined on complexes, or at least I don't know of any agreed definition of it. By default everything was checked on complexes. So no use of mod. Same for #39.
#50: again, complex roots.
#52,53: Absolute value for a complex number means something else.
#68: here you do have a point. Nevertheless, the antiderivative given there is the same you're to find in textbooks - sure it is not the most handy thing but both of us know that things get wild around division by zero. Nevertheless, if anything, you should also know that a calculator doesn't replace brain - and when you see an n=-1 and the given antiderivative, you should see that it cannot be trusted. But I know of no CASes on calculators that throw you the warning signs. Some computer algebra systems do that, but even then, it's mostly turned off by the users of the same systems...

Looking at #68 when n=-1 is a curious thing. If we have an expression which is shaped like 1/(ArcTan(x)*(a+b*x^2)), I cannot think of any rule to apply. In our particular case, we can substitute u=arctan(x) and du=1/(x^2+1), then we get int(1/u du), which is log(u)+C... so we get ln(arctan(x)). But then again, when a coefficient has such values, it doesn't change the validity of the general equation - you yourself know the quadratic formula, I bet. x1,2=(-b +- Sqrt(b^2-4ac))/(2a). If you threw a first-order equation in there (where a is zero), you would get a division by zero, granted. Yet it doesn't mean that the general equation is invalid - rather that it has some values which are special. Most integrals are like that - and you might also know the cases where you set the integration range to places where the integral doesn't exist, but that doesn't automatically mean that the area between the two cannot be determined. There are cases when you can still do that.

Mind you: I like it if people disagree. Not because I like to piss them off, but because it shows they actually care about what I say or write. Agreeing is way too easy. Therefore, thank you for your thinking about it.
Dernière édition par quinyu le 08 Juin 2015, 00:31, édité 1 fois.
Avatar de l’utilisateur
quinyu
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 48%
 
Messages: 9
Inscription: 07 Juin 2015, 20:06
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: low

Re: Integration tests on 3 top-model CAS systems

Message non lude quinyu » 08 Juin 2015, 00:20

Adriweb, you forget I need to typeset it neatly - compared to that, the feeding of the equations into the calculators is not much. Word and MM are lazy asses. Even if they do a reasonably neat job.
Avatar de l’utilisateur
quinyu
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 48%
 
Messages: 9
Inscription: 07 Juin 2015, 20:06
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: low

Re: Integration tests on 3 top-model CAS systems

Message non lude Excale » 08 Juin 2015, 00:37

The TI-Nspire CAS throws warnings :).

(well, at least it can. It does, but not as much as I'd like)
Avatar de l’utilisateur
ExcaleAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 3.9%
 
Messages: 2955
Images: 3
Inscription: 10 Sep 2010, 00:00
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: Integration tests on 3 top-model CAS systems

Message non lude Bisam » 08 Juin 2015, 00:56

If you want your results to be valid for complexes... then you should tell it to the calc !
The Nspire needs to be warned that a variable is complex by putting an underscore at the end of its name. If you don't put it, the variable is understood real.

For example, for #50, if you type integral(x_/√(a_^4-x_^4),x_) it answers tan^-1(x_^2/√(a_^4-x_^4))/2 as you would expect.

But, my interrogation becomes : when do you really need any antiderivative to be calculated over complex numbers ? In fact, very few functions are well defined above complex numbers (no root functions, no logarithms, no arcsine, etc...)... so why bother about that ?
Avatar de l’utilisateur
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Prochain niv.: 69.6%
 
Messages: 5665
Inscription: 11 Mar 2008, 00:00
Localisation: Lyon
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: Integration tests on 3 top-model CAS systems

Message non lude Lionel Debroux » 08 Juin 2015, 06:54

This is quite an extensive piece of work, good job :)
I'll let Bisam, parisse and others deal with math aspects.

The inferior and closed-source kArmTI should indeed be avoided.
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
Avatar de l’utilisateur
Lionel DebrouxSuper Modo
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Prochain niv.: 11.2%
 
Messages: 6859
Inscription: 23 Déc 2009, 00:00
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: -
GitHub: debrouxl

Re: Integration tests on 3 top-model CAS systems

Message non lude quinyu » 08 Juin 2015, 08:09

I'm sorry, Bisam, but I have to disagree. If I tell the calc to integrate 1/x over the complexes, so typing integral(1/x_,x_), it still gives ln(x_). Strictly speaking, not valid on complexes precisely because (as you yourself mentioned) logarithm is ill-defined, at least from one point of view. But I'll let that slip for now.

Switched to the actual emu. I will do a quick run through the integrals where the TI failed, later. School first.

As of your question, namely why you would need an antiderivative over complexes. That's what contour integration revolves about. And almost every function (mind you I said "almost") has a well-defined main value as far as complexes are concerned. Furthermore, precisely because some functions behave differently, amongst them a few quite important ones, I expect to either get a warning from the calculator, or better yet, that it avoided said functions or substituted a suitable complex-compatible one. For example, the absolute value is one such function. On the complex plane, it means the distance from the origin, so for Abs(x+yi), you get sqrt(x^2+y^2), always a real; but that is generally not what is meant by the calculator. Or for that matter, which is why I am so much against using the mod function on complexes - given that a mod(x,y)=0 means there exists some z for which x=y*z. If we look at the complex numbers, it can be proven that there always exists such a z.

And dear Mr. Debroux, thank you very much! I thought these things already got through (that is, someone at TI-cares wrote they would be), but if not, then all the same, here they are and hope here they'll stay.
Avatar de l’utilisateur
quinyu
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 48%
 
Messages: 9
Inscription: 07 Juin 2015, 20:06
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: low

Re: Integration tests on 3 top-model CAS systems

Message non lude Bisam » 08 Juin 2015, 14:28

Your answer gives some clues... but your beliefs are incorrect !

  • Contour integrations does not compute any complex integration... the value of the functions are complex but not the variable involved which is always real.
  • On every calc that I know handling complex numbers, abs(z) means the module of z when z is a complex number. I don't see your point.
  • You're wrong too for the signification of mod(x,y)=0. It means that there exists an INTEGER (that may be negative) k for which x=k*y. It is also available for x and y being complexes.

But you're right when saying that a calc should warn when it uses "ill-defined" functions, as you said.

Even though, I still don't see the point for asking the result to be valid when the variable is complex.
Avatar de l’utilisateur
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Prochain niv.: 69.6%
 
Messages: 5665
Inscription: 11 Mar 2008, 00:00
Localisation: Lyon
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: Integration tests on 3 top-model CAS systems

Message non lude quinyu » 08 Juin 2015, 15:37

Bisam, so your suggestion is to do away with using the complex mode of the calculators during integration testing? It would make things a little easier (no doubt also for the calculators), but then the fact still remains that the calculators do integration in complex mode without hesitation (except the HP that reminds you that in general it's not a good idea).

But then what if I want to evaluate actual integration on a complex variable? Should the calculator flat-out refuse doing it? Should it sneakily switch back to real mode? Should it pop up a window calling me a dumbass and then still do it? Because here we see three manufacturers, in essence each trying to top the other two; and none of them opted for any of these methods (except HP once again, but even there it's not more than a reminder.) Nothing prevents users to actually integrate over complexes, or what they think complexes; not even requiring them to do an explicit declaration that that's what they want to do. No "assuming x is real" in the given result. This way, one trusts the answer that might end up wrong due to complex mode being on.

I know that I have said brains are also needed to actually know if something can be counted as a result or not. But then there is also the question of user friendliness… which you would expect from a calculator that does flashy things like multimedia. True, I might be alone with my ideas or at any rate be in the minority; but I like to trust my calc. Which is why I was so disappointed when the 991DE gave me her refusal to calculate i^i in complex mode, reporting a "Math. error". It has a calculable value, after all. Hell, she even refuses to calculate i^4.
Avatar de l’utilisateur
quinyu
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 48%
 
Messages: 9
Inscription: 07 Juin 2015, 20:06
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: low

Re: Integration tests on 3 top-model CAS systems

Message non lude Bisam » 08 Juin 2015, 16:46

Well, I'm not a CAS programmer (but another of our users, parisse, is the one who made the CAS engine for HP Prime) so I can't tell why they chose this, but I can imagine the difficulties.

I'm not here to say your benchmark is biased or so on.
I was just pointing details and asking for more information.

As a math teacher, I can't let you say, for example, that writing
$mathjax$\ln(i)$mathjax$
or
$mathjax$i^{i}$mathjax$
makes sense... even if many calcs give an answer for both of these, without giving a f..k.

To make things even more clear, I am not thinking that YOU are wrong when trying to make these calculations, but that the calc is wrong to let you make them. Most of the time, using complexes can be avoided... and when it may be interesting, the calc often doesn't do the calculation you would have liked.

I hope my questions didn't bother you and that you will go on helping community by making some of these tests again (or anything else...)
Avatar de l’utilisateur
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Prochain niv.: 69.6%
 
Messages: 5665
Inscription: 11 Mar 2008, 00:00
Localisation: Lyon
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: Integration tests on 3 top-model CAS systems

Message non lude quinyu » 08 Juin 2015, 18:18

Certainly. While it will be no small undertaking to do them again (typesetting a little more than 900 antiderivatives, assuming they're given differently, but then again I hope only a few are...). The calculators certainly will give a bunch more absolute values.

As of
$mathjax$\mathbb{i} ^ \mathbb{i}$mathjax$
, it is
$mathjax$\mathrm{e} ^ {-\frac{\pi}{2}}$mathjax$
, whereas
$mathjax$\ln(\mathbb{i})$mathjax$
is
$mathjax$\frac{\mathbb{i}\pi}{2}$mathjax$
. The :32tinscxcas: knows this, also the Prime; the ClassPad II doesn't seem to know the first, only the second... *figures*.

At any rate, I've restarted the run through, no doubt it will massively improve a lot of things, as far as horribly complicated and/or not done integrals are concerned.
Avatar de l’utilisateur
quinyu
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 48%
 
Messages: 9
Inscription: 07 Juin 2015, 20:06
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: low

PrécédenteSuivante

Retourner vers Maths, physique, informatique et autre...

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 24 invités

-
Rechercher
-
Social TI-Planet
-
Sujets à la une
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
Phi NumWorks jailbreak
123
-
Faire un don / Premium
Pour plus de concours, de lots, de tests, nous aider à payer le serveur et les domaines...
Faire un don
Découvrez les avantages d'un compte donateur !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partenaires et pub
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1268 utilisateurs:
>1226 invités
>37 membres
>5 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Autres sites intéressants
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)