π
<-

[SOLVED]Function algébric-->trigonometic

Pour le TI-Basic sur Nspire

Re: Function algébric-->trigonometic

Message non lude AlexisVieira » 19 Juin 2013, 01:15

Levak a écrit:
AlexisVieira a écrit:on the cas maybe i can make it displays the angle and the module on diferent lines...

Like returning lists/matrices ?

yes... something that says: "module=2" "angle=2*pi" in different lines...
I'm Portuguese, sorry about bad English :s
Avatar de l’utilisateur
AlexisVieira
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Prochain niv.: 25.7%
 
Messages: 213
Images: 13
Inscription: 05 Fév 2013, 16:58
Localisation: Portugal
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: 12ºAno PT

Re: Function algébric-->trigonometic

Message non lude Adriweb » 19 Juin 2013, 01:22

These are crafted string of yours, in which you can actually write your function's name, but it's a piece of work you have to do by yourself, not what I was talking about earlier (the CAS engine figuring out by itself how to use your user-defined functions :) )

Anyway, good luck ^^
Try Disp it will make new lines.
And in a matrix form, you can put mat[0]:=xxx, mat[1]:=yyy or something.

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...)
My calculator programs
Mes programmes pour calculatrices
Avatar de l’utilisateur
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 82.2%
 
Messages: 14896
Images: 1211
Inscription: 01 Juin 2007, 00:00
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
Twitter/X: adriweb
GitHub: adriweb

Re: Function algébric-->trigonometic

Message non lude AlexisVieira » 19 Juin 2013, 10:10

after some tries i reached a program that is more or less what I wanted. On the CAS oS works fine. On the non-CAS it doesn't work at all. The only problem when I use the CAS oS is that if i have the Cis() defined before the program will return the entered number
Code: Tout sélectionner
Define LibPub trigo(x)=
Prgm
  Disp "módulo="abs(x)
  Disp "ângulo="angle(x)
  Disp abs(x)*cis(angle(x))
EndPrgm
Dernière édition par AlexisVieira le 22 Juin 2013, 00:19, édité 1 fois.
Avatar de l’utilisateur
AlexisVieira
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Prochain niv.: 25.7%
 
Messages: 213
Images: 13
Inscription: 05 Fév 2013, 16:58
Localisation: Portugal
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: 12ºAno PT

Re: Function algébric-->trigonometic

Message non lude Levak » 19 Juin 2013, 10:16

AlexisVieira a écrit:after some tries i reached a program that is more or less what I wanted. On the CAS oS works fine. On the non-CAS it doesn't work at all. The only problem when I use the CAS oS is that if i have the Cis() defined before the program will return the entered number
Code: Tout sélectionner
Define LibPub trigo(x)=
Prgm
  Disp "módulo=",abs(x)
  Disp "ângulo=",angle(x)
  Disp abs(x)*cis(angle(x))
EndPrgm

But what is the definition of cis ?
If it is a "symbol" then yes, it is a primitive for the CAS. On non CAS, cis is a symbol and has to be defined in order to reduce to numbers.
Responsable design/graphique de TI-Planet
I do not get mad at people, I just want them to learn the way I learnt.
ImageTNOC [topic][DL]
nClock [topic][DL]
HideManager [topic][DL]
ZLock [topic][DL]
Theme Editor [topic][DL]
Mes programmes
Avatar de l’utilisateur
LevakAdmin
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Prochain niv.: 98.9%
 
Messages: 6414
Images: 22
Inscription: 27 Nov 2008, 00:00
Localisation: 0x1AACC355
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: BAC+5: Epita (ING3)

Re: Function algébric-->trigonometic

Message non lude AlexisVieira » 19 Juin 2013, 10:38

cis(x)=cos(x)+i*sin(x)
I'm Portuguese, sorry about bad English :s
Avatar de l’utilisateur
AlexisVieira
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Prochain niv.: 25.7%
 
Messages: 213
Images: 13
Inscription: 05 Fév 2013, 16:58
Localisation: Portugal
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: 12ºAno PT

Re: Function algébric-->trigonometic

Message non lude Levak » 19 Juin 2013, 11:37

AlexisVieira a écrit:cis(x)=cos(x)+i*sin(x)

Is that "i" the complex "i" or the letter "i" ?
Because on non CAS it makes a lot of differences.
Responsable design/graphique de TI-Planet
I do not get mad at people, I just want them to learn the way I learnt.
ImageTNOC [topic][DL]
nClock [topic][DL]
HideManager [topic][DL]
ZLock [topic][DL]
Theme Editor [topic][DL]
Mes programmes
Avatar de l’utilisateur
LevakAdmin
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Prochain niv.: 98.9%
 
Messages: 6414
Images: 22
Inscription: 27 Nov 2008, 00:00
Localisation: 0x1AACC355
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: BAC+5: Epita (ING3)

Re: Function algébric-->trigonometic

Message non lude AlexisVieira » 19 Juin 2013, 12:02

the number complex "i" of course...
I'm Portuguese, sorry about bad English :s
Avatar de l’utilisateur
AlexisVieira
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Prochain niv.: 25.7%
 
Messages: 213
Images: 13
Inscription: 05 Fév 2013, 16:58
Localisation: Portugal
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: 12ºAno PT

Re: Function algébric-->trigonometic

Message non lude Bisam » 19 Juin 2013, 12:14

Why don't you use the function already available on calc : >Polar (with plain triangle) ?
Avatar de l’utilisateur
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Prochain niv.: 69.6%
 
Messages: 5670
Inscription: 11 Mar 2008, 00:00
Localisation: Lyon
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: Function algébric-->trigonometic

Message non lude AlexisVieira » 19 Juin 2013, 16:08

Bisam a écrit:Why don't you use the function already available on calc : >Polar (with plain triangle) ?


humm, as i can see that expressionis the one used on your country... but on portugal we use p*cis(x)... what is the same thing but i want that on our default form...
I'm Portuguese, sorry about bad English :s
Avatar de l’utilisateur
AlexisVieira
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Prochain niv.: 25.7%
 
Messages: 213
Images: 13
Inscription: 05 Fév 2013, 16:58
Localisation: Portugal
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: 12ºAno PT

Re: Function algébric-->trigonometic

Message non lude AlexisVieira » 21 Juin 2013, 22:53

can someone convert that my code to the z80 basic?:S
I'm Portuguese, sorry about bad English :s
Avatar de l’utilisateur
AlexisVieira
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Prochain niv.: 25.7%
 
Messages: 213
Images: 13
Inscription: 05 Fév 2013, 16:58
Localisation: Portugal
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: 12ºAno PT

PrécédenteSuivante

Retourner vers Nspire-Basic

Qui est en ligne

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

-
Rechercher
-
Social TI-Planet
-
Sujets à la une
Ndless for CX 4.5.5 / CX II 6.2.0
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
12345
-
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.
2689 utilisateurs:
>2657 invités
>25 membres
>7 robots
Record simultané (sur 6 mois):
43991 utilisateurs (le 10/09/2025)
-
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)