...
Voir le premier message non lu • 5 messages
• Page 1 sur 1
-
ciaone
Niveau 3: MH (Membre Habitué)- Messages: 3
- Inscription: 16 Mar 2018, 13:38
- Genre:
- Calculatrice(s):→ MyCalcs profile
Re: Maximum and minimum of a function
Possible with a user defined function :
- Code: Tout sélectionner
Define or2list(ex)=
Func
: If part(ex,0)="or" Then
: Return augment(or2list(part(ex,1)),or2list(part(ex,2)))
: Else
: If part(ex,0)="=" Then
: Return {part(ex,2)}
: EndIf
: EndIf
:Return {}
:EndFunc
-
critorAdmin
Niveau 19: CU (Créateur Universel)- Messages: 41494
- Images: 14626
- Inscription: 25 Oct 2008, 00:00
- Localisation: Montpellier
- Genre:
- Calculatrice(s):→ MyCalcs profile
- YouTube: critor3000
- Twitter/X: critor2000
- GitHub: critor
Re: Maximum and minimum of a function
Hi!
you can use
for example :
you can use
exp▶list(
for example :
exp▶list(fMax(x^2,x,-1,1),x)
-
Hamza.SAdmin
Niveau 17: GM (Grand Maître des calculatrices)- Messages: 4463
- Images: 18
- Inscription: 07 Nov 2014, 00:43
- Genre:
- Calculatrice(s):→ MyCalcs profile
Re: Maximum and minimum of a function
Hamza.S a écrit:Hi!
you can useexp▶list(
for example :exp▶list(fMax(x^2,x,-1,1),x)
Nice one, I had forgotten about that and was wondering if critor's code could be made shorter, but exp>list precisely does it already
Example with more elements:
exp▶list(x=−1 or x=1 or x=4,x)
=> {−1,1,4}
MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)-
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)- Messages: 14614
- Images: 1218
- Inscription: 01 Juin 2007, 00:00
- Localisation: France
- Genre:
- Calculatrice(s):→ MyCalcs profile
- Twitter/X: adriweb
- GitHub: adriweb
Re: Maximum and minimum of a function
Thanks, that's good to know though the "logic" result does not bother me at all
Best,
Hisham
Best,
Hisham
-
HishamPremium
Niveau 8: ER (Espèce Rare: nerd)- Messages: 139
- Inscription: 01 Mar 2017, 20:52
- Genre:
- Calculatrice(s):→ MyCalcs profile
5 messages
• Page 1 sur 1
Retourner vers Problèmes divers / Aide débutants
Qui est en ligne
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 30 invités