Math functions not sure how to work with them

Im trying to work out the math functions into my program, but I'm not sure where is the mistake. This is what I have now:
(a) y = ax^2 + bc + c
(b) y = a*sin(x) + b*cos(x) + cx);Especially I'm not sure how to format the sin and cos functions
Thanks !

jordan755 wrote:
Im trying to work out the math functions into my program, but I'm not sure where is the mistake. This is what I have now:
(a) y = ax^2 + bc + c
(b) y = a*sin(x) + b*cos(x) + cx);
Java != algebra.
(a) says: Take the variable called 'ax', perform a bitwise XOR on its value with the number 2, add that result to the value of the variable 'bc', add that result to the variable 'c' and put the result in variable 'y'.
(b) is trying to call sin() and cos() methods defined in the current class and add the to variable cx.
In your other thread, you had variable names 'keyboard' and 'character'. Given that, why would you expect 'bc' to mean "b times c" rather than "variable named 'bc'"? If you want multiplication, you have to use the multiply operator, ***.
If you want to call a method that's defined outside your current class, you have to use the class name or a reference to an object of that class. The methods sin and cos are defined in the Math class. I advise you to read their docs before using them.

Similar Messages

  • Just started getting about 300-400 emails per day from several fraudulent Addresses to my icloud email and am not sure how to stop receiving them, or create a rule to have them all go to Junk.When unsub, I get more. Emails from my contacts are now Junk?!

    Just started getting about 300-400 emails per day from several fraudulent Addresses to my icloud email and am not sure how to stop receiving them, or create a rule to have them all go to Junk.When unsub, I get more. Emails from my contacts are now Junk?! How do I fix this? I have over 800 emails since 5Am YESTERDAY!

    First, don't unsubscribe.  This only tells the spammer that your email address is valid and they will send even more.
    If this is only being sent from a few specific email addresses, you can set up a rules on icloud.com similar to the image below to send them to the trash.  This describes how to set up a rule: http://help.apple.com/icloud/#mm6b1a3f8a.

  • TS4058 i  not  sure  how  to  work the  computer

    I tried  to  sign  in  on  chatt  but  every  time  I do  it  keep  saying  I  am  signing  in the  wrong  [pass  word   ND  EMAIL  ADDRESS  NOT  SURE  HOW  TO  CHANGE  IT  CAN  YOU  HELP 

    Hi,
    It would help to know which OS on your Mac you are running as this will tell  me which version of iChat you are using.
    iChat can use AIM names
    It can uses certain Apple IDs issued by Apple as Valid Screen Names if the password is kept to 16 characters or less as this is the AIM Server limit.
    These are @mac.com name and @Me.com names.
    @me.com names from iCloud will only work in iChat 6 and Messages (Lion and Mountain Lion)
    iChat 4 and later iChat 5 had button to "Get an iChat Account"
    Where the Button led you to depended on which Option you selected in the Drop down.
    Soon after iChat 5 came out AIM moved their Login page so the link there did not work.
    With MobileMe ending Apple closed the link to the @Mac.com (free) Registration page.
    Recently (since June 30th and the end on MobileMe last paid for period) this page has also gone.
    11:04 PM      Wednesday; August 29, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Not sure how to work this

    I have a problem that im not sure how to solve.
    Basically, i need to use a StringTokenizer to split up a list of names into individual strings and them put them into a collection of some sort.
    Then, I need to sort the strings into alphabetical order from A-Z so I can put them in a JList in order.
    I really dont know how to go about this.
    Reading the strings into the collection is fine but after that i dunno.
    I know that String has a method where you can extract an individual char so i thought maybe iterate through the collection and take out the first char...maybe somehow use it as a condition to check other strings or something i dunno.
    I dont really have a time limit on this as its just part of a week program im working on, but any ideas or suggestions might help.
    Thanks in advance guys.

    Which part are you stuck on? It was a little hard to tell. From what I read, it looks like you just don't know how to sort the Strings once you've put everything in the collection. You should be able to simple call:Collections.sort(yourStringCollection);To sort the list.

  • Multiple iPhoto libraries from external drive. How to work with them all

    I'm not an expert user so forgive me. But I have tons of pictures and videos of family.
    I've had to save 2 libraries on an external drive and going on my 3rd. I had to do it because the computer was running super slow and giving me warnings. Each library is about 115GB.
    Now my question is: Whats the easiest way to work with all libraries a the same time? I create slide shows and videos and often need pictures and videos that are in the different libraries..... problem being, I have to close a library, open the next, import and export photos from one to the other.......
    I think you get my point.....any suggestions are appreciated.

    Thank you again Larry.
    Unfortunately some horrible thing just happened . I was getting ready to put your advice to work and...........
    I went to verify all my libraries were in the External drive (My passport for Mac) before I did anything else.  I couldn't find the drive. I  called the company and apparently the is a problem with the drive and my only option is to try recover the data from a recovery data service....
    What did just happen???? I'm still hopeful I can recover it. and I may have a back up in another drive.
    So this is semi-related question. How many back ups of your pictures should you have to be safe? and How do I know which devices are reliable? I thought these two Mt Passports from Western Digital were ok? Any advice?

  • Umm not sure how this works.. how do I transfer wirelessly to other devices

    How do I start transferring things wirelessly

    you can't tranfer files with the built in program that apple gives you, you may (i belevie) download an app that allows you

  • Hi all, I'm new here and not sure how things work.

    I just wanted to know how do I install adope 10.1 on my iPad 4 for the use of ufilling. Your assistance will be appreciated. Thanks.

    fanamotaung,
    As of today (August 10, 2014), the latest version of Adobe Reader is 11.3.2, which runs only on iOS 7.  10.1.0 is the very first version of Adobe Reader for iOS released back in October 2011.  It is rather obsolete and does not provide the support for form filling.
    If the operating system of your iPad 4 is iOS 5 or 6, you will get a dialog like this when you try to install Adobe Reader from the App Store.
    You can tap the Download button to install an older version of Adobe Reader for iOS.
    However, we'd highly recommend updating your operating system to the latest iOS 7.1.2 and installing the latest version of Adobe Reader (unless you have a reason why you do not want to update iOS).
    Once you install Adobe Reader for iOS, you can launch it and tap Help in the Reader home screen to see the in-app Handbook (Help documentation),  It has a lot of useful information to get you started on Adobe Reader for iOS.
    Please let us know if you have additional questions.

  • Font problems, not sure how to deal with

    Hi,
    I recently opened an archived final cut pro project and suddenly all of the Livetype files couldn't be rendered because a font was missing.
    This seems to be happening slowly as the project before that suddenly stopped using one of the fonts I had installed ( I ignored it figuring that it might possibly be a license that had gone out).
    At any rate, I posted this in Livetype forum but hadn't received an answer yet. I just went in to font book and I have an exclamation point in a yellow triangle with a warning below that says:
    'Multiple copies of this font are installed. You can use the Resolve Duplicates Command to automatically deactivate the copies not in use.'
    Does this have anything to do with my problem?
    No one seems to be able to answer so far and this is costing me money by the minute.
    Thanks

    Christopher --
    If you have two (or more) of the same font enabled, yes, it could very well cause your problem.
    Do you see the two fonts?
    Open them up with the triangle, and look closely at the properties. (date,etc)
    If you hover your cursor over each font, you will see more information).
    Then click "Resolve duplicates" and try again.

  • How to work with BarTender software from LV ?

    Hi,
    I'd like to activate Seagull's BarTender Label printing software (version 7.71) from Labview.
    Basically I need to create a new label, add text and pictures/icons to it and then send it to the printer.
    I noticed an Active-X option exist but I'm not sure how to work with it. I started building something like the attached file but I don't know how to continue.
    Does anyone have some examples ?
    (Otherwise, is it possible to use command lines ?)
    Thanks in advance,
    Mentos.
    Attachments:
    Bartender_Example.vi ‏12 KB

    What type of printer are you trying to communicate with? Depending on the printer it may be possible to communicate directly with the printer itself. You would need to define the label or labels you would like to print and insert the data on the fly in your application and then send it to the printer.
    I am not familiar with the BarTender application itself so I can't give you advice on interfacing with it. However if it does have an ActiveX interface you should be able to communicate with it directly.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • I have an ATV an iphad and want to watch the NBA playoffs. Not living in the USA and willing to pay a fee. not sure how the NBA league pass works. can someone please assist. regards, glenn

    Hi,
    I have an iphad, an iphone and an atv.
    I want to watch the coming NBA playoffs online and wanted to know how i should do that..
    I am not living in the USA and want to pay a fee to NBA League Pass to watch the games...
    not sure how that works, can somebody please guide me.
    thx.
    Glenn

    If its not available in your location then unfortunately there isn't a lot you can do

  • I can not get website to work with ShockWave

    I don't know where to post this, but I need some help with it.
    Back in 1997 I was using Director, which I no longer have. At that time I created a website that contained some interactive pages where I had used Director to create content the required using Shockwave.
    I now have a MBP running system 10.6.2. I tried to open the pages in Safari and I get a dialog box telling me:
    "Some content on the page can’t be shown because its MIME type is unspecified."
    I downloaded Shockwave and Flash from Adobe, I restated my computer and still get the same message. I am not sure if ShockWave works with 10.6.2 or not.
    I am wanting to get the content of the pages so that I can use them on something else. If I could open the interactive pages I might be able to copy and past them off the webpages. Or if I could open the files with some other program then I could recover the content. Recovering the content is my goal, not running the interactive files online.
    Anyone have a suggestion?

    HI,
    It's possible (more like probable) the software you used to create the site isn't compatible with the latest version of Flash. I'm pretty sure why you are getting this... "Some content on the page can’t be shown because its MIME type is unspecified."
    Go to the Adobe Director support area here...
    http://www.adobe.com/products/director/
    You can ask their customer service for suggestions so you can extract the data from your site.
    Carolyn

  • Can anyone help me figure out how to sync my ipod with my purchased music?  I have used several computer and at one point synced my ipod with a computer that only had about half of my music.  My other computers are no longer working.  Not sure how to get

    Can anyone help me figure out how to sync my ipod with my purchased music?  I have used several computer and at one point synced my ipod with a computer that only had about half of my music.  My other computers are no longer working.  Not sure how to get my purchased music back onto my ipod?

    Hi kimcinma!
    Your previous purchases are saved on iCloud even if you bought them on another computer. If you can't find them on your current computer, you might need to unhide them. Go to iTunes preferences, and click on Store Preferences. Then click the box for "show iTunes in the Cloud purchases". Then click on OK, and everything you've ever bought from iTunes on that Apple ID will show up in your library. You will need to download them from iCloud first before you can synch them to your iPod Classic. To do this, click on the little cloud with the arrow in it next to your song, and it will download to your computer. When you have the music that you want downloaded, plug in your iPod and synch away. Hope this helps!
    Sandygirl

  • Downloaded yosemite continuity is not working with my iPhone 6.  Both on same wifi network and iCloud account.. not sure how to set it up any help is appreciated

    downloaded yosemite continuity is not working with my iPhone 6.  Both on same wifi network and iCloud account.. not sure how to set it up any help is appreciated

    Connect your iPhone, iPad, iPod touch, and Mac using Continuity

  • TS1363 ipod classic not working with win xp not sure how to sync it?

    ipod classic not working with win xp not sure how to sync it?

    Have you read this?
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/HT4527
    The Apple web site has lots of other guidance, for example if you are migrating from Windows to Mac, read this.
    Switch 101: Migrate your Windows files or system to your Mac
    http://support.apple.com/kb/HT2518

  • ICloud password works on everything but erasing all data. I got a new iPhone and need to wipe this one but am not sure how else to do this since the password is not working. Any suggestions?

    iCloud password works on everything but erasing all data. I got a new iPhone and need to wipe this one but am not sure how else to do this since the password is not working. Any suggestions?

    Firefox also makes regular backups of your bookmarks in a folder named bookmarkbackups in your personal settings folder. You can restore the backup to your new Firefox, but unlike importing the HTML-format file, it is a complete drop-in replacement, so if you have saved new bookmarks you do not want to lose, the export/import method may work better for you.
    By default, Windows hides your personal settings folder so the easiest way to access it is from inside Firefox. You can use either:
    * "3-bar" menu button > "?" button > Troubleshooting Information
    * (menu bar) Help > Troubleshooting Information
    * type or paste about:support in the address bar and press Enter
    In the first table on the page, click the "Show Folder" button. This will launch a window showing your Firefox settings files.
    You might want to back up this whole folder if you have other data you want to preserve from your XP computer.
    Either way, you should find the bookmarkbackups folder here and when you click into it, find maybe 10 files with dates in their names.
    The procedure to restore the file once you have it on removable media or some other convenient place is described in this article: [[Restore bookmarks from backup or move them to another computer]].
    Regarding the other files and what you might find of use: [[Recovering important data from an old profile]].

Maybe you are looking for

  • Satelite L645 doesn't recognise the internal CD/DVD Drive

    thing is,  this computer a Satelite L634 SP4019M doesn't recognise the internal CD/DVD drive, not even as an unocupied drive in the "My Computer" folder (just the C: drive is displayed). I have searched and I don't think I will find drivers for this

  • UCCX 7.5 CAD chat between different teams

    Hello everybody, me client asked for the function of chatting with agents, who are in different teams. Is there any way to realize that? Red a discussion about that in this forum relating to UCCX version 4. Maybe now there is a possibility to realize

  • SO Wait causes exception occurred within external code called by call library node

    when trying to run some old code that used to work ok, i now get this error message: exception occurred within external code called by call library node and the vi flagged as calling the exception is SO Wait. the error occurs with different soundcard

  • Opening a new window when a JMenu Item is clicked

    hiii.. i have a main window.it has two menu items.File and Capture.When i click on Capture menu's item, a new window should appear which should have many JComponents such as textbox,labels etc on it .I know this has to be done in ActionPerformed of t

  • I am Getting the classcast error while using the webservice client

    Hi , Iam getting classcast exception while trying to get the connection Object throurh the webservice client. The details are: the ra.xml <resourceadapter-version>1.6</resourceadapter-version> <resourceadapter> <resourceadapter-class>oracle.apps.cont