This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's
Technology & Calculator Open Topic subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.
Math and Science =>
Technology & Calculator Open Topic
Author |
Message |
|
MeBeatYou
Member
Joined: 29 Sep 2005 Posts: 178
|
Posted: 30 Nov 2005 04:15:36 pm Post subject: |
|
|
Thanks for the Linear Regression help, it really did help me out. Instead of wasting another post, I was wondering if there was any way to graph step functions. I thought it would be an interesting thing to try. The calculator comes with a built in function for absolute value (f(x)=|x+2|-3) but not for *forgets exact name* step functions (f(x)=[x])
The brackets symbolize that f(x) has to be equal to the INTEGER less than or equal to X. Is there anyway to graph these 'step functions' on the caluclator?
Click Here For An Example Of A Step Function |
|
Back to top |
|
|
Weregoose Authentic INTJ
Super Elite (Last Title)
Joined: 25 Nov 2004 Posts: 3976
|
Posted: 30 Nov 2005 04:28:50 pm Post subject: |
|
|
[font="courier new"]int() is the TI-Basic syntax for the floor() function: [MATH] [[font="courier new"]►] [5]
The floor function is usually represented as .
You can also use [font="courier new"]round(value,places) or [font="courier new"]iPart().
These are in the very first chapters of the manual.
Last edited by Guest on 01 Dec 2005 02:15:42 am; edited 1 time in total |
|
Back to top |
|
|
DarkerLine ceci n'est pas une |
Super Elite (Last Title)
Joined: 04 Nov 2003 Posts: 8328
|
Posted: 30 Nov 2005 06:56:17 pm Post subject: |
|
|
More:
iPart(X) returns the next closest integer to 0 (so if X<0, it will be greater, if X>0, it will be less). Essentially, truncating the decimal part.
int(X) will always return the greatest integer less than or equal to X. Beware, if X is 0.999998 it will still return 0.
To find the least integer greater than or equal to X, use -int(-X).
To round to the closest integer, use round(X,0) or int(.5+X), whichever makes you happier. |
|
Back to top |
|
|
thornahawk μολών λαβέ
Active Member
Joined: 27 Mar 2005 Posts: 569
|
Posted: 01 Dec 2005 01:54:09 am Post subject: |
|
|
I split the topic because this isn't very related to regression. Hope you don't mind. :)
Anyway, -int(-X) is functionally equivalent to the so-called "ceiling function" (least integer ≥ X).
Other step functions not explicitly implemented on the calculator are the sign function (X>0)-(X<0) and the unit step function 2(X≥0)-1 (in terms of so-called Iverson brackets).
thornahawk
Last edited by Guest on 01 Dec 2005 01:54:37 am; edited 1 time in total |
|
Back to top |
|
|
|
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
»
Go to Registration page