1
$\begingroup$

I'm trying to do a homework assignment on my graphing calculator app for my ipad (Quick graph+).

(Edit by Willie: The images are originally posted here http://imgur.com/a/XRj4g I've included them below.)


Image 1


Image 2


Image 3


Image 4

The first image at the top right is what I am trying to make on my graphing calculator. Basically I have to limit the domain when graphing. Halfway down in the red box I highlighted is the ears that we have to graph by limiting f(x)=-2abs(2x-5)+6 to a domain of 1<=x<=4

At the bottom right of the first image you can see how they insert it into the graphing calculator they use. They put f(x)=(-2abs(2x-5)+6)((x<=1)(x<=4)) however looking at the second image in the album my graphing calculator disallows that. I emailed the app creators and they said to use the "if" button. (image 3)

However when I used "if" it didn't turn out properly like I expected (image 4). I was wondering how I could go about properly graphing this function so it will limit the domain properly.

If there is any confusion in what I'm trying to do leave a comment and I'll try to explain my self further.

  • 0
    @WillieWong Thanks so much! Do you have any idea on how I can fix this issue?2012-09-25

3 Answers 3

1

You used the if operator incorrectly. The format is

if( condition, what to do if True, what to do if False)  

But you put another condition in the place of "what to do if false".

Here's an example: I want a function which is equal to $3x$ between $x=1$ and $x=4$, is equal to $x+8$ between $x=4$ and $x=5$, and is undefined otherwise. The code could be

if(x>5, ln(0), if(x>4, x+8, if(x>1, 3*x, ln(0) ) ) ) 

Here I'm using $\ln(0)$ with the hope that it will simply produce no output for the corresponding range, rather than halt the entire computation. Don't have the app (or iPad for that matter), so can't tell for sure.

  • 0
    Thanks LVL it worked great! I've got it all working now2012-09-26
0

You need to set the function to "undefined" when it is not in your region. Do you see any way to do that?

  • 0
    No I don't see a way of doing this. Every key I see can be found in image 42012-09-24