My Math Forum  

Go Back   My Math Forum > College Math Forum > Calculus

Calculus Calculus Math Forum


Reply
 
LinkBack Thread Tools Display Modes
April 6th, 2011, 04:38 AM   #1
Newbie
 
Joined: Apr 2011

Posts: 2
Thanks: 0

Piecewise constant function on my Ti-84

Today in class, we've talked about limits and the continuity of functions and this was an example:
f(x)={
|x-1| if x<2
1-x+1/2 x if 2?x?4
26/(5x-15) if x>4

This is a piecewise constant function, but how can I put this is my Ti-84 if I want to see a graph of it?
Simke is offline  
 
April 6th, 2011, 05:28 AM   #2
Global Moderator
 
greg1313's Avatar
 
Joined: Oct 2008
From: London, Ontario, Canada - The Forest City

Posts: 7,968
Thanks: 1152

Math Focus: Elementary mathematics and beyond
Re: Piecewise constant function on my Ti-84

Y=abs(x-2)(x<2)+(1-x+x^2/2)(2?x?4)+(26/(5x-15))(x>4)

The comparison operators are in 2ND-MATH. The abs() (absolute value) function is the first entry in the catalog in 2ND-0.
greg1313 is offline  
April 6th, 2011, 10:21 AM   #3
Senior Member
 
Joined: Apr 2007

Posts: 2,140
Thanks: 0

Texas Instruments make great calculators.
johnny is offline  
April 6th, 2011, 11:09 AM   #4
Newbie
 
Joined: Apr 2011

Posts: 2
Thanks: 0

Re: Piecewise constant function on my Ti-84

Quote:
Originally Posted by greg1313
Y=abs(x-2)(x<2)+(1-x+x^2/2)(2?x?4)+(26/(5x-15))(x>4)

The comparison operators are in 2ND-MATH. The abs() (absolute value) function is the first entry in the catalog in 2ND-0.
Thank you
but when I put them all together in "Y1=....", with the "+" between them, I became a completely different graph than it was supposed to be
that's OK now, because I've put them all apart into functions (Y1=abs(x-1)(x<2), Y2=(1-x+x/2)... )
Y1 and Y3 are fine, but the Y2 gives me the complete parabola and not the one for 2?x?4
Simke is offline  
April 6th, 2011, 12:06 PM   #5
Global Moderator
 
greg1313's Avatar
 
Joined: Oct 2008
From: London, Ontario, Canada - The Forest City

Posts: 7,968
Thanks: 1152

Math Focus: Elementary mathematics and beyond
Re: Piecewise constant function on my Ti-84

I made a mistake. Here's the correction, which displays a correct graph:

Y=(abs(x-1))(x<2)+(1-x+x^2/2)(2?x)(x?4)+(26/(5x-15))(x>4)
greg1313 is offline  
Reply

  My Math Forum > College Math Forum > Calculus

Tags
constant, function, piecewise, ti84



Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
non-piecewise smooth function mariam Applied Math 1 December 27th, 2013 05:56 AM
Piecewise Function math89 Calculus 4 January 20th, 2013 01:03 PM
Piecewise differentiable function FreaKariDunk Real Analysis 3 November 13th, 2012 11:36 PM
how do we integrate a piecewise function? alexmath Calculus 5 October 24th, 2012 06:09 PM
Piecewise Function help mathkid Calculus 4 September 1st, 2012 07:18 PM





Copyright © 2019 My Math Forum. All rights reserved.