Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - ase1590

Pages: [1]
1
TI-BASIC / Nspire basic- displaying equation rather than var
« on: March 08, 2011, 10:07:35 pm »
I am still learning the basics of scripting on my Nspire CAS calculator, and am having a problem getting my simple script to work properly

Code: [Select]
  1.
      Define evenodd(eq,var)=
   2.
      Prgm
   3.
      :Local even
   4.
      :©attempting even(-x)=4x+1 should give -4x+1
   5.
      :©I want to display an equation, not the variable "eq"
   6.
      :  even(var):=eq
   7.
      :Disp even(-var)
   8.
      :EndPrgm
after running evenodd() i do not get the expected result.
instead of evenodd(x2+x+1, x) returning x2-x+1 i get the variable eq returned to me.
Basically I am trying to use a function like f1(x)=x+2 in a program, only i want to be able to do it in a manner of f(x)=equation

2
Introduce Yourself! / Hello!
« on: March 08, 2011, 09:24:58 pm »
Hello!
I am ase1590, and I am a beginning programmer. I have been lurking the forums for a few months, and decided I would make up an intro.
As I am a relatively newcomer to TI technology, I have been playing with making Libraries for my Nspire, and my natural inclination to extend the features of all the devices I own led me to here in my searching.

So Hello OmniMaga!

Pages: [1]