Grapher having trouble with trig functions

Well I thought that I could make some cool visuals for my math class by using grapher instead of just making charts and graphs in Excel on my pc, but no dice with that idea. I created all the different variables (and how they related to x, ie x^2*(5-x6)/x=m) and it was pretty cool how it would all come together and I could use those variables in other equations instead of writing it all out (stuff like y=4x^m-m/5). (Those are examples, not anything I used)
Everything seemed fine until I tried to use a cosine function in one of the equations. It seemed really intuitive and recognized cos as cosine and not the variables c, o, and s multiplied, so I thought "great!" Then when I entered it the graph didn't appear anything like it should have. It gave me a Richter scale instead of a slightly curved line. I spent about half an hour trying to find my own error but then realized maybe there was something wrong with the program. I tried just plain old cos(x) and found that it was completely off. Instead of traveling from 0,1 to 180,-1 like it should have, it went from 0,1 to 3.1475,-1. This was way off so I tried a sine function and that did the same exact thing (having a period of roughly 6.295 instead of 360!). These functions were way off, and I'm using an intel macbook from my school (with 10.5), so I thought maybe someone changed the settings, so I tried them them on my aunts g4 macmini (10.4.11 I think) and it gave me the same problem!
Anyway what's wrong with the trig functions for Grapher and how can I fix them?

Emzz, I'm running 10.5.5 (Intel) and Grapher v2.0. My version of Grapher supports changing Trigonometric Mode, so the absence of this option seems to have nothing to do with Leopard.
But let's do some Math now. As you surely know the cosine has (besides others) a root at 90 Degrees in the unit circle. Now let f : (angle in Degrees) -> (length of the corresponding arc of the unit circle) be a mapping. For 90 Degrees f yields 0.5*Pi. That means cosine has a root at 0.5*Pi in Radian unit.
Now, if you swith Grapher's Trigonometric Mode from Degrees to Radian, cosine will no longer have a root at 90 but at approximately 1.57. Hope that explains a bit...
By the way, Radian is the standard unit of angular measurement when it comes to trigonometric functions. For more details about Radian see [this article at Wikipedia|http://en.wikipedia.org/wiki/Radian] (click the link to be redirected).
I suggest you close this topic because, as you already noted yourself, your initial question is answered.
Good computing.
floba
(MN576)
Message was edited by: floba

Similar Messages

  • Having trouble with put_line function in block statement..

    Am a student, and the request does not appear to be in my book anywhere... Nothing on put_line, or block statements that I can see..
    Need to write a block which will bring back via put_line for department 110: the department_id (departments table), the department_name (departments table), and the city in which the department is located (which must be pulled from locations table... can be joined by department_id). I can write the select statement with join, just not sure how to turn it into a block with put_line function..
    any advice appreciated.. Thanks.

    Hi,
    You need to format your code, so that it's easy to see what statements are in each section (DECLARE, BEGIN, etc.).
    The compiler doesn't care about this, but it will help anyone who tries to read your code, including yourself.
    Type {code} before and after formatted sections when posting messages on this site.
    All statements, including each individual variable declaration) end with a semicolon.
    If a query will return no more than one row, you can capture the results using an INTO-clause, right after the SELECT-clause. For every column in the SELECT-clause, there will be one variable in the INTO-clause.
    Lists, including lists of table names in a query's FROM-clause, are delimited by commas.
    In a query's FROM-clause, the real name of the table comes first, optionally followed by the alias you're using in the query.
    I think this is what you're trying to do:
    SET   SERVEROUTPUT  ON  SIZE 50000
    Declare
        dep_id    NUMBER;
        Dep_string VarChar (100);
    Begin
        select  d.department_id, d.department_name -- , l.city
          into  dep_id,          dep_string
          from  departments  d
             ,  locations    l
          where d.location_id = l.location_id
            and d.location_id = 110;
        DBMS_OUTPUT.PUT_LINE (Dep_string);
    END;
    /No one should ever have this many errors at one time. Write code in much smaller increments, and test after each one. For example, you know you'll be using dbms_output.put_line, so start with something like:
    SET   SERVEROUTPUT  ON  SIZE 50000
    BEGIN
        dbms_output.put_line ('Hello, world!');
    END;You may have problems if you forget semicolons, or SET SERVEROUTPUT. Solve those before you go any further.
    Once the program above is working, add a little (and I mean a little) to it.
    For example, you know you'll be printing a varibale, not a literal, so change it to a variable:
    SET   SERVEROUTPUT  ON  SIZE 50000
    DECLARE
        dep_string  VARCHAR2 (100) := 'Hello, world!';
    BEGIN
        dbms_output.put_line (dep_string);
    END;And so on.
    Edited by: Frank Kulash on Dec 15, 2008 12:36 PM

  • I am having trouble with a function in vb can anyone give me a suggestion?

    I am trying to calculate a cable bill of a residential customer and a business customer, when the customer checks the list box of the channels and the connections I need it to add it up. I have edited the code. Does my logic make sense?
    for residential customers it is 4.50 processing,30 basic service and 5 per channel
    so is the logic processing+basicservice *premium
    Public Class Main
    Private Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles btnCalculate.Click
    If Data_Validated_ok() = False Then Exit Sub
    Dim premiumChannels As Integer = lstPremium.SelectedIndex
    Dim Connections As Integer = lstConnections.SelectedIndex
    Dim totalDue As Decimal
    If radResidential.Checked Then
    totalDue = CalcResidentialTotalDue(premiumChannels, Connections)
    lblTotal.Text = totalDue.ToString("C2")
    Else
    totalDue = CalcBusinesssTotalDue(premiumChannels, Connections)
    lblTotal.Text = totalDue.ToString("C2")
    End If
    End Sub
    ' make a function to calculate residential customers
    Private Function CalcResidentialTotalDue(ByVal premiumChannels As Decimal, ByVal connections As Decimal
    ) As Decimal
    Const ResidentialProcessing As Decimal = 4.5D
    Const ResidentialBasic As Integer = 30
    Const ResidentialPremium As Integer = 5
    Return ResidentialProcessing + ResidentialBasic + ResidentialPremium * premiumChannels
    End Function
    ' make a function to calculate business customers
    Private Function CalcBusinesssTotalDue(ByVal premiumChannels As Decimal, ByVal connections As Decimal
    ) As Decimal
    Const BusinessProcessing As Decimal = CDec(16.5)
    Const BusinessBasic As Integer = 80
    Const BusinessPremiumchannels As Integer = 50
    Return BusinessProcessing + BusinessBasic + BusinessPremiumchannels * premiumChannels
    End Function
    here is  a pic of my listboxes
    [IMG]http://i57.tinypic.com/muepug.png[/IMG]
    http://i57.tinypic.com/muepug.png

    The statement below is wrong in both functions.  You are passing the variable "connections" in the function parameter list and not using the variable.  I thing in the statement below you need to change connections to something else.
    connections = Convert.ToDecimal(lstConnections.SelectedItem)
    Here are the two parameter lists
    1)    Private
    Function calcResidentialTotal(ByVal connections
    As Decimal,
    ByVal premium As
    Decimal)
    As Decimal
    2)   Private
    Function calcBusinessTotal(ByVal connections
    As Decimal,
    ByVal premium As
    Decimal)
    As Decimal
    jdweng

  • Having trouble with Tiscali/TalkTalk site when accessed with 'FireFox', can't 'reply' to emails or report 'spam', other functions seem ok

    Having trouble with Tiscali/TalkTalk site when accessed with 'FireFox',
    can't 'reply' to emails or report 'spam', other functions seem ok
    == This happened ==
    Every time Firefox opened
    == On/Off few months now all time

    Try deleting cookies and cache:
    1. Tools| Clear recent history
    2. Time range to clear: Everything
    3. If it isn't already selected, select '''Cookies''' and '''Cache'''
    4. '''Clear now'''
    <u>Check cookie exceptions</u>
    1. Tools | Options | Privacy Panel
    2. Set '''Firefox will: Use custom settings for history''' Insure Accept cookies for sites and accept third-party cookies is selected
    3. Click '''Exceptions'''. If the misbehaving site is in that list, select it and click '''Remove site'''
    Also see [[Updating Firefox]]

  • Having trouble with the video function..

    I just purchased the 60GB ipod photo. I'm transferring music files easily. However, I'm having trouble with the video function. I've loaded Itunes 6, reloaded the original setup disk, and have loaded the latest updates for the unit. I can download movies from the itunes store and save them to my library, but I cant seem to transfer the video files to the ipod. Ive reinstalled itunes and the update 6 with no success. After syncing the ipod it only shows the music files even after all that Ive tried. Additionally, there is no evidence of the video function on the main menu after the update attempts. Can someone tell me what I'm doing wrong? I'm eager to get past this problem so that I can start tranfering personal movies and video files.

    You Have an iPod Photo, You do NOT have a 5th Generation Video iPod. Get it? You need the 5G model to play video.
    If the salesman told you it was the 5G model he lied, was ignorant or both. If video is important or if thats what you thought you were getting you will need to return your 4G iPod photo for new iPod.
    Rotsa Ruck!

  • I'm having trouble with my sound up and sound down keys. They're doing other functions. This is only a new thing.

    I'm having trouble with my 'sound up' and 'sound down' keys. They're doing other functions. This is only a relatively new thing.

    You didn't mention what those "other functions" were.  That might help!
    First thing to check is System Preferences > Keyboard > Keyboard tab - make sure "Use all F1, F2, etc. keys as standard function keys" is un-checked.  Hopefully that still works in Mountain Lion.

  • I'm having trouble with the folder "Automatically add" function. She opens a folder "not added". My machine is a Vaio with Windows 7 home basic antivirus using Microsoft. Regards.

    I'm having trouble with the folder "Automatically add" function. She opens a folder "not added". My machine is a Vaio with Windows 7 home basic antivirus using Microsoft. Regards.

    Its a 64 bits.

  • I am having trouble with my JAVA Applet. It isn't functioning on SAFARI.    It seems to have stopped working and I used it on SAFARI last year. Any suggestions ?

    I am having trouble with my JAVA Applet. It isn't functioning on SAFARI.    It seems to have stopped working and I used it on SAFARI last year. Any suggestions?

    Post in the Safari forum area.

  • I'm having trouble with the repeat function on iTunes 11.

    I'm having trouble with the repeat function on iTunes 11.  The buttons are there but will not allow me to repeat an album when selected under artist from remote app on iPhone.  I have downloaded the update for the remote app but the repeat function now repeats all albums under that artist name.  Selecting the album directly under albums works but is not as easly to access.  Any thoughts?

    Sorry, downgrading is not supported.

  • Having trouble with the str()function

    I'm having trouble with the str() function. The first parameter is the value and I want to set the format but I keep getting an error. I do it like this. str(locals.array[8]-locals.array[9],"%$.6f"). I get a runtime error, so I tried to remove the "" but now the I get a syntax error.

    Hi,
    Can not see a problem with your statement.
    I have attached a TS2.0.1 example using you expression.
    Regards
    Ray Farmer
    Regards
    Ray Farmer
    Attachments:
    Sequence_File1.seq ‏20 KB

  • I'm having trouble with something that redirects Google search results when I use Firefox on my PC. It's called the 'going on earth' virus. Do you have a fix that could rectify the vulnerability in your software?

    I'm having trouble with a virus or something which affects Google search results when I use Firefox on my PC ...
    When I search a topic gives me pages of links as normal, but when I click on a link, the page is hijacked to a site called 'www.goingonearth.com' ...
    I've done a separate search and found that other users are affected, but there doesn't seem to be a clear-cut solution ... (Norton, McAfee and Kaspersky don't seem to be able to detect/fix it).
    I'd like to continue using the Firefox/Google combination (nb: the hijack virus also affects IE but not Safari) - do you have a patch/fix that could rectify the vulnerability in your software?
    thanks

    ''' "... vulnerability in your software?" ''' <br />
    And it affects IE, too? Ya probably picked up some malware and you blame it on Firefox.
    Install, update, and run these programs in this order. They are listed in order of efficacy.<br />'''''(Not all programs detect the same Malware, so you may need to run them all to solve your problem.)''''' <br />These programs are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have.<br />
    ''Note: If your Malware infection is bad enough and you are mis-directed to URL's other than what is posted, you may have to use a different PC to download these programs and use a USB stick to transfer them to the afflicted PC.''
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
    SuperAntispyware - [http://www.superantispyware.com/] <br />
    AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
    Windows Defender: Home Page - [http://www.microsoft.com/windows/products/winfamily/defender/default.mspx]<br />
    Also, if you have a search engine re-direct problem, see this:<br />
    http://deletemalware.blogspot.com/2010/02/remove-google-redirect-virus.html
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help: <br />
    [http://www.spywarewarrior.com/index.php] <br />
    [http://forum.aumha.org/] <br />
    [http://www.spywareinfoforum.com/] <br />
    [http://bleepingcomputer.com]

  • In mail, I am having trouble with my cursor.  It doesn't "land" where I think I'm putting it.  It usually "lands" somewhere below where I "click" it to be.

    In Mail, I am having trouble with my cursor.  When making revisions to what I have already typed, the cursor doesn't "land" where I "click" it to be.  It seems to land somewhere below the spot I click on. It seems to have a mind of its own. 

    Cool handyandy42!
    I'm happy I could be helpful, with solving your problem!
    Also, I notice that you have marked your question as answered, but have not utilized the Helpful or Solved options. That may be intentional, but, if you are not aware of the benefits, of using that function, here is some information.
    When you mark the appropriate posts as Helpful (5 pts) 2 available, or Solved (10 pts) 1 available, you are Thanking the contributors, by awarding them points.
    In threads with multiple replies, it also alerts other readers, to which answers may have been helpful, or solved the issue.
    This info, and more, can be viewed by clicking on
    ? Help & Terms of Use, located under your login name, on all "Discussions" pages.
    Specifically What are question answers?.
    ali b

  • I am having trouble with a form, won't tab to 2nd page...

    I am having trouble with a form I created in Acrobat Pro 10. I created tabs etc, they all work wonderfully in Adobe, but once I uploaded it onto the web-based program for other users, the tabs only work  on page 1, I have to click on page 2 to keep tabbing through.  It won't tab into it.  Any advise?  Also, when the users open it it opens in the web.

    1. The library is separate from the application, so re-installing shouldn't cause an issue with the actual photos. But it would be foolhardy in the extreme to do anything without first backing up.
    2. Often these issues are caused by a damaged Library, so reinstalling doesn't change much.
    FWIW
    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store you can find it in your Purchases List.
    Alternative approach:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • I'm having trouble with a multi channel acquisition and download with PXI-5922

    I am having trouble with getting data out from both channels of a PXI-5922.  My software seems to be working, but when I do the fetch there is no data for the second channel.  I am using the same format for all of the channelList inputs (0,1).  I've checked the instrument handles and anything else I can think of, but this is my first time trying to collect data on 2 channels of a digitizer.  Any help would be appreciated.

    Hi schliepe,
    Try checking your code against an existing example. The
    Developer Zone Example: Independent
    Channel Configuration with NI-SCOPE is a good VI to reference. Also note
    that there are several examples that come with the NI-SCOPE driver. They can be
    found in Windows by going to Start »
    Programs » National Instruments » NI SCOPE » Examples. Additionally, if you find that the examples are not working either, verify that both channels are functioning by running the
    NI-SCOPE Soft Front Panel.
    Please post back if you have any questions. Have a great
    day!
    Ryan D.
    District Sales Manager for Boston & Northern New England
    National Instruments

  • Hello, I'm having trouble with my ipod

    hello, I'm having trouble with my ipod

    Holding down the center/select button and the menu button will reboot your ipod. See if that helps. Also, I'd recommend something else- I had nothing but trouble with my ipod classic until I spent $20 to get Mac OS Mountain Lion. It did what you said and sometimes wouldnt play, or wouldnt power on...
    Try rebooting your ipod and let me know what happens and maybe in the future obtain Mountain Lion to aide your ipod in functionality.
    Good luck!

Maybe you are looking for

  • Crystal Reports XI and Sun One 6.1 web server SP 5 Error finding JNDI name

    I am trying to create a Crystal Reports XI report in a JSP using Sun One 6.1 Web server sp 5. At this point I am getting the error �Error finding JNDI name� on Sun One The application will run on Netbeans/Tomcat I have done the following: I edited CR

  • How to save sections of a single XML Document to multiple tables ?

    Firstly, I apologise for the long e-mail but I feel it's necessary in order to clarify my problem/question. The XML document representation below stores information about a particular database. From the information in the XML document you can tell th

  • Mysql driver and Jbuilder 2005 foundation

    I am trying to connect to a mysql server using jdbc and the mysql drivers. Specifically version 3.1.7. I will post my code here although I believe the code is correct and that I have a classpath issue with jbuilder. The error I am receiving on both b

  • Blackberry wireless headset HS-700 dials one number only

    I just got a new wireless headset for my blackberry curve. It's supposed to be new, in box. Now that it's set up and connected, when I command it to dial a call it calls the same number ... An 870 area code number I don't know. No matter what I tell

  • Creating "Menu" for AVCHD File

    Is it possible to create a menu file, or something like it, for an AVCHD file?  I am hearing more and more that people want their video projects on flash drives, which is fine.  But the downside is, as far as I can tell, you lose the menu screen when