Please help if anyone can!!!
I have multiple issues. first, i have a problem on iteration. i am given
(x,f(x)) and (x + d, f( x + d)), where x ranges from Xmin to Xmax and d = (Xmax - Xmin)/100. Draw the curve f(x) = X^3/100 - x + 10, where x ranges from -10 to 10 in this fashion. And am asked to draw a hundred line segments joining those points.
I have already figured that the distance d = 10-(-10)/100 which is equal to 0.2. Since i am told to draw 100 line segments, i figured that increasing -10 by .2 will take 100 iterations to get to 10.
Now my question is how do i use a "for" loop to represent the above statement. I have tried couple of them, but it doesn't seem right. example of the one i tried is:
let x = 10
for(i = -10; i < x; i++). I know this is wrong. Please help if anyone can. I will really appreciate and thanks in advance.
import java.applet.Applet;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Line2D;
This program draws graphs of curves using iterations
CS 46A, Fall, 2002
@author Afam Okeke Section 7
@version October 6, 2002 Program 6
public class DrawCubicApplet extends Applet
public void paint (Graphics g);
Graphics2D g2 = (Graphics2D)g;
double xscale = (getWidth() - 1.0) / (XMAX - XMIN);
double yscale = (getHeight() - 1.0)/ (YMIN - YMAX);
g2.scale (xscale, yscale);
g2.translate (-XMIN, -YMIN);
g2.setStroke (new BasicStroke(0));
final double Xmax = 10;
final double Xmin = -10;
final double Ymax = 15;
final double Ymin = 5;
double d = 0.2;
This is how far i have gotten. Now i don't know how to set up my 'for' loop for the x values. That is, how can i state that from -10 with an increment of 0.2 will take 100 iterations to get to 10. I hope am not confusing you. Below is the question
Question: Simply draw a hundred line segments joining the points (x,f(x)) and (x + d, f( x + d)), where x ranges from Xmin to Xmax and d = (Xmax - Xmin)/100. Draw the curve f(x) = X^3/100 - x + 10, where x ranges from -10 to 10 in this fashion.
Similar Messages
-
Im Using iPhone 4 factory Unlocked device iOS 7, but device was feels slow, so i want to restore to iOS 6.1.3. how can i do this? please help me anyone itz urgent.
As has always been the case, you cannot go back.
Sorry -
XBox 360 and WRT54GS no one can fix this. Please help if you can?
I'm totally out of ideas here and would appreciate it if someone could help me? We have 2 XBox 360's both with the Microsoft XBox wireless adapters. My son has had his since they first came out whatever year that was. My youngest daughter got hers last October. Both XBox's connect to XBox LIVE without a problem via a Linksys WRT54GS wireless router. The problem we can't solve is - my oldest daughter and son-in-law live about a mile from us and they have an XBox 360. When we try to connect to their XBox (or anyone else that's local) to play against her and her husband, it won't connect and gives us a "Disconnected" prompt every time. They have no problem connecting to other XBox's locally but we, for some reason, can't. I can connect our XBox directly into our cable modem bypassing the Linksys and it connects to them, so it isn't the cable modem. I've changed settings on the router, internet, XBox with no luck. I've updated the firmware. I've read thru posts on the internet for weeks and now my brain is mush. Is this fixable or do I need to buy a new wireless router? Also, I don't know if this has anything to do with anything but we have 3 PC's and 3 DVR's also connected to the internet but are hard wired. My kids and grandkids have DSi's, a Playststion3, and a Wii and those all connect via wireless and work great. XBox has this WRT54GS listed as compatable. I'm stumped. I know there's some really sharp folks out there somewhere.......please help if you can? Thanks for any help you could offer!
Have you opened the ports on the router....?
If not then,you need to open ports 53-3074 on the router..Read this link. Also,under the security tab on the router,uncheck Block Anonymous Internet Requests and click on Save Settings... -
I want to know that if i want to download facebook on my iphone 4 or any other apps then it ask me put my card details for payment. why is that. if they are free then why do i need to give my card details?please help me anyone.
Just select no credit card as outlined here:
http://support.apple.com/kb/ht2534 -
I cannot get my library to show up on my newly authorized computer, please help if you can.
I have home sharing enable on old computer and new one.
If I try to sync --I get the message that ipod can be synced w only one computer and if I sync with this library (which only shows new purchases from itunes) it will replace everything that is currently on ipodWhy can't the songs be transferred to the device? Is it because they are not authorized? Were these 25 tracks purchased/downloaded with the same account you have used to authorize the PC/new iTunes library?
Have you seen this article yet?
iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
B-rock -
I had already update mi new factory unlocked iPhone 4S to iOS 5.1.1 and I still having problems with "invalid sim". I'm from Argentina and here we don't have official service. PLEASE HELP ME, WHAT CAN I DO??? In Argentina is too expensive an iPhone 4S. Please I need help to continue believing in Apple. Thanks a lot. If anybody speak spanish better.
Was it purchased from an official Apple Store, not a reseller? Only Apple Stores sell official factory unlocked phones. The others sell hacked to unlock phones, and the unlocking is unstable.
Try these steps, as needed:
1. Reset phone - press both home and on/off buttons for at least 10 seconds until the Apple logo appears.
2. Settings > General > Reset > Reset Network Settings.
3. Replace SIM card (and reset network settings again)
4. Restore Phone in iTunes using a backup
5. Restore in iTunes as new, without using a backup -
When I plug my iPod into the computer, itunes won't come up on the screen and my iPod is not recognized anymore and it use to be. Please help because I can't sync it at all because it won't show up as a device on the right hand side of itunes.
Try
iOS: Device not recognized in iTunes for Windows
I would start with
Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
or
Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
Before you reinstall the Apple software, also remove iCloud vi Control Panel Remove programs. The reinstall the Apple programs
New cable and different USB port?
Runs this and see if the results help with determine the cause
iTunes for Windows: Device Sync Tests
Try on another computer to help determine if computer or iPod problem -
Mac pro running OS 10.5.8 won't boot. Apple logo and spinning wheel shows then Apple logo turns into Forbidden signage while spinning wheel continue. It happenened right after I installed a firmware. Had to restart.Please help. What can I do?
Work through the suggestions in this article:
Mac OS X: Gray screen appears during startup -
Hi please help me how can I use my iPhone 4 I am at vocation my is not working please help
Hi I am at vocation at Italy I am not able to use my phone please help me how can I use my phone overseas thank u
You need to make your own ringtones in iTunes then sync them to your phone. Follow the directions here:
http://osxdaily.com/2010/09/04/make-free-iphone-ringtones-in-itunes-10/ -
i have just updated my old 3GS and now when i am on restore the window is comming up and asking for a password. i have not set up a password for restore, please help how i can restore my date???
capriz wrote:
i have just updated my old 3GS ...
To what... iOS 7 is Not supported on the 3 GS -
Please add the option to be able to upload/link new pdfs with the in-browser editing. I have a restaurant client who is constantly updating their menu! Please help so they can do this themselves!
Thank you so much for your help! I am so relieved. I will have explain how to do this to my client, but a big weight is off my back!
A long learning process and actually such an easy fix. So glad you responded. Again thank you... -
When attempting to convert pdf to word doc, I continually get "An error occurred while signing in" despite the fact that I'm already signed in. Please help if you can?
Hi lorrelaws,
Do you receive that error when you try to sign in via Reader? If so, try signing in via the web interface. Did that do the trick?
Let us know how it goes.
Best,
Sara -
Please help. How can i get my mic to work??
+ Hi all
I have a creative inspire 5. 5700 hooked up to my X-FI extreme music via Digital I/O port.
However im a bit pissed off because i cant get a microphone to work, it seems that the port i use my speakers for is the same port as the microphone..
Any ideas how to get my mic to work without unplugging the digital I/O?
Cheers/Re: Please help. How can i get my mic to work? The only solution that I can think of is to get the?X-Fi I/O Dri've. Unfortunately, Creative does not sell this anymore on their store. You can buy it online, though most places I find it at, it is refurbished.
This is what it looks like: http://us.creative.com/products/prod...5&product=4659#
The other alternati've is the X-Fi I/O Console. This, however is rather expensi've (I think it is anyways).
http://us.creative.com/products/prod...duct=47&listby=
Unfortunately those are the only ways I know of. The X-Fi Xtreme Music does not hook into normal front panel solutions. -
i can't turn off find my ihone, always show "there was a problem when canceling the registration of this iphone with icloud" please help me. i can't restore my iphone before turn off find my iphone
If you are the original owner of the phone and know the Apple ID and password that were used to activate it originally, and if you have an existing backup to restore from, you can force it into recovery mode (which will completely erase it) and restore it as explained here: If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support. When you do you will encounter activation lock, and will have to provide the ID and password used to activate it originally in order to activate it again. If you can't, you won't be able to activate and use it.
-
my macbook backlight of display is not glowing,icons are hardly visible please help me what can i do.......
If its under warranty, its something that the applestore will fix fairly quickly. If not, it all depends on if you are willing to spend that amount of money to get it fixed.
Maybe you are looking for
-
Does CF offer an alternative to frames ?
I have a web application where we need an illustration to be fixed at the top of the screen, and then row after row of database results, which offer information which references the drawing at the top of the screen. My boss has asked if there's any w
-
I have an ATV 3 (MD199KN/A), which have hanging menus after haven been on sleep. If I wants to play something from, say, Youtube, it looks like this: The cartoon keeps going in the background and going to, say, Netflix doesn't help either: My only op
-
Please fix the non-existent Sign Out
Is there going to be any update so that you can sign out of Skype on Xbox One? Its pretty ridiculous that you can't, I've had to go into my privacy settings and make it so no one can message me just so that Skype is disabled. I would love to use it
-
For CF Server 9 developer win 64bit has the same running problems like 32bit, or more
CFWACK8 reader: Better install CF Server stand alone - so no need Apache? For CF Server 9 developer windows 64bit has the same running problems like 32bit, or more? I have installed http://www.apachefriends.org/en/xampp-windows.html ..WAMPP, well
-
Issues rendering WDA from portal
Hi, When opening a WDA from portal, we encounter issues where the WDA does not seem to render and hangs. This issue occurs sporadically. When this does occur, if re-activate the "UR" service in SICF, the issue goes away. Can anyone shed some light o