Page 1 of 1

Defines

Unread postPosted: 08 May 2013, 18:08
by AlexisVieira
Well, I have on my nspire the switcher ndless/3.2 and I use that lots of times but when I do that I delete all of my defines and when I go to my math clessons I spend some time typing this:
Code: Select all
Define c(x,y)=ncr(x,y)
Define a(x,y)=nPr(x,y)
Define cis(x)=cos(x)+i*sin(x)
Define q1=0≤x≤π/2
Define q2=π/2≤x≤π
Define q3=π≤x≤3π/2
Define q4=3π/2≤x≤2π

which is a lot of work! -.- Is there a way to make my nspire have this functions "defined" on the reboot ?

Re: Defines

Unread postPosted: 08 May 2013, 18:17
by Bisam
Just put all these Defines in a Libpub program and execute it when you need it.

Re: Defines

Unread postPosted: 08 May 2013, 18:23
by AlexisVieira
something like this?
Code: Select all
Define LibPub defines()=
Prgm
Define c(x,y)=ncr(x,y)
Define a(x,y)=nPr(x,y)
Define cis(x)=cos(x)+i*sin(x)
Define q1=0≤x≤π/2
Define q2=π/2≤x≤π
Define q3=π≤x≤3π/2
Define q4=3π/2≤x≤2π
EndPrgm

Re: Defines

Unread postPosted: 09 May 2013, 19:36
by Bisam
Yes.
You save that program in a document in Mylib, you "refresh the librairies", and you can use it anywhere anytime.
Once executed in any new document, you can use all the functions and constants that you have defined.

It's almost an "include"...

Re: Defines

Unread postPosted: 09 May 2013, 20:59
by AlexisVieira
Bisam wrote:Yes.
You save that program in a document in Mylib, you "refresh the librairies", and you can use it anywhere anytime.
Once executed in any new document, you can use all the functions and constants that you have defined.

It's almost an "include"...


yes it works. i already tried but i forgetted to post that