π
<-

[SOLVED]Function algébric-->trigonometic

Pour le TI-Basic sur Nspire

Re: Function algébric-->trigonometic

Unread postby AlexisVieira » 19 Jun 2013, 01:15

Levak wrote:
AlexisVieira wrote: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
User avatar
AlexisVieira
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 25.7%
 
Posts: 213
Images: 13
Joined: 05 Feb 2013, 16:58
Location: Portugal
Gender: Male
Calculator(s):
MyCalcs profile
Class: 12ºAno PT

Re: Function algébric-->trigonometic

Unread postby Adriweb » 19 Jun 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
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 78.9%
 
Posts: 14744
Images: 1119
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb

Re: Function algébric-->trigonometic

Unread postby AlexisVieira » 19 Jun 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: Select all
Define LibPub trigo(x)=
Prgm
  Disp "módulo="abs(x)
  Disp "ângulo="angle(x)
  Disp abs(x)*cis(angle(x))
EndPrgm
Last edited by AlexisVieira on 22 Jun 2013, 00:19, edited 1 time in total.
User avatar
AlexisVieira
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 25.7%
 
Posts: 213
Images: 13
Joined: 05 Feb 2013, 16:58
Location: Portugal
Gender: Male
Calculator(s):
MyCalcs profile
Class: 12ºAno PT

Re: Function algébric-->trigonometic

Unread postby Levak » 19 Jun 2013, 10:16

AlexisVieira wrote: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: Select all
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
User avatar
LevakAdmin
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 98.9%
 
Posts: 6414
Images: 22
Joined: 27 Nov 2008, 00:00
Location: 0x1AACC355
Gender: Male
Calculator(s):
MyCalcs profile
Class: BAC+5: Epita (ING3)

Re: Function algébric-->trigonometic

Unread postby AlexisVieira » 19 Jun 2013, 10:38

cis(x)=cos(x)+i*sin(x)
I'm Portuguese, sorry about bad English :s
User avatar
AlexisVieira
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 25.7%
 
Posts: 213
Images: 13
Joined: 05 Feb 2013, 16:58
Location: Portugal
Gender: Male
Calculator(s):
MyCalcs profile
Class: 12ºAno PT

Re: Function algébric-->trigonometic

Unread postby Levak » 19 Jun 2013, 11:37

AlexisVieira wrote: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
User avatar
LevakAdmin
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 98.9%
 
Posts: 6414
Images: 22
Joined: 27 Nov 2008, 00:00
Location: 0x1AACC355
Gender: Male
Calculator(s):
MyCalcs profile
Class: BAC+5: Epita (ING3)

Re: Function algébric-->trigonometic

Unread postby AlexisVieira » 19 Jun 2013, 12:02

the number complex "i" of course...
I'm Portuguese, sorry about bad English :s
User avatar
AlexisVieira
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 25.7%
 
Posts: 213
Images: 13
Joined: 05 Feb 2013, 16:58
Location: Portugal
Gender: Male
Calculator(s):
MyCalcs profile
Class: 12ºAno PT

Re: Function algébric-->trigonometic

Unread postby Bisam » 19 Jun 2013, 12:14

Why don't you use the function already available on calc : >Polar (with plain triangle) ?
User avatar
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 69.6%
 
Posts: 5670
Joined: 11 Mar 2008, 00:00
Location: Lyon
Gender: Male
Calculator(s):
MyCalcs profile

Re: Function algébric-->trigonometic

Unread postby AlexisVieira » 19 Jun 2013, 16:08

Bisam wrote: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
User avatar
AlexisVieira
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 25.7%
 
Posts: 213
Images: 13
Joined: 05 Feb 2013, 16:58
Location: Portugal
Gender: Male
Calculator(s):
MyCalcs profile
Class: 12ºAno PT

Re: Function algébric-->trigonometic

Unread postby AlexisVieira » 21 Jun 2013, 22:53

can someone convert that my code to the z80 basic?:S
I'm Portuguese, sorry about bad English :s
User avatar
AlexisVieira
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 25.7%
 
Posts: 213
Images: 13
Joined: 05 Feb 2013, 16:58
Location: Portugal
Gender: Male
Calculator(s):
MyCalcs profile
Class: 12ºAno PT

PreviousNext

Return to Nspire-Basic

Who is online

Users browsing this forum: ClaudeBot [spider], michell0987654321 and 3 guests

-
Search
-
Social TI-Planet
-
Featured topics
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 !
1234
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
771 utilisateurs:
>740 invités
>20 membres
>11 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)