Jump to content

ohhungry

Members
  • Posts

    709
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by ohhungry

  1. We can do this with a simple triple integral and some algebra. If you split the cylinder into very small circular slices, each of those slices would have a volume equal to (Area of Circle)*(Δh). To find the area of each circular slice, we can take the circle to be a series of concentric disks, each with a width Δr. Using polar coordinates, we can express the area of the circle as a double integral. Since each disk goes about a 360 degree rotation (or 2π) this will be our angle of integration, giving us the following integral: ∫(0-2π)∫(0-R)[rdrdθ] We now take this integral, and integrate it over our height of 10cm, and this integral will be equal to the volume of the cylinder, which is 300cm^3 So our equation is: 300 = ∫(0-10) ∫(0-2π)∫(0-R)[rdrdθdh] 300 =10 (∫(0-2π)∫(0-R)[rdrdθ]) 30 = 2π(∫(0-R)[rdr]) 30 = 2π[(r^2)/2](0-R) 30=π(r^2) sqrt(30/π) = r r ~ 3.1 Therefore the answer is A) 3.1cm
  2. most anti-bans I've seen don't change the camera pitch, they just rotate it around, so the pitch shouldnt change. I think the way the methods in the API works though when it tries to rotate the camera to make something visible is it changes the pitch, which is why you see the camera in such weird positions all the time. I tried making a script that would move the pitch back up to the top, but it looks even worse because it keeps moving the pitch down then up over and over and looks retarded...
  3. well that was over fast, gratz on your 1 gp
  4. the answer i have is based on a school textbook, maybe he is trying to figure out something wrong, or has made a mistake, the answer is 4x + 3 so someone try to explain why. Maybe we get a prize for telling you how you are wrong? Obviously your textbook is wrong or you're just trolling everybody... if 4x+3 was a factor, and we put it in the form (x-s)(x-t) you would then have (4x+3)(x-t)=4x^2-8x+3 Now if you expand out those brackets, the only way to have 3 on both sides is if t= -1, and if t= -1, there will -x on the left side and -8x on the right side, and the equation would obviously not be true for all values of x, hence 4x+3 is not a factor.
  5. There were two plausable choices with that equation, I know I figured it out faster then you did Nah, I knew the answer already, but I wanted the longest description cause apparently thats the contest or something :P
  6. First correct answer wins an astounding 1 gold coin. A man is doing a science experiment in the Arctic. His experiment involves determining how much power it takes for different drills to dig a hole through the ice to a depth of 5 metres. He has 3 different drills to test. The first one is 5 meters in length, with a radius of 2 metres at the base, and makes an angle of 40 degrees from the centre of the tip to the base of the drill. The second one is similar, but instead makes an angle of 30 degrees, and the third an angle of 20degrees. Each one uses electrical power (created by a generator and solar panels) based on the ratio of the angle (in radians) to the radius of the drill. The scientist must decide which drill uses the least power, but before he starts, he sees a bear walking towards him. What colour is the bear? Explain your answer
  7. ahha nope sorry try again, note: ^ means exponent He's actually right... and he did it in a manner much harder then it needed to be. Pfft, trial and error is for nubs
  8. ahha nope sorry try again, note: ^ means exponent Uhh...yeah, my answer's right. unless by 4x^2 you actually meant (4x)^2, in which case there are no real roots.
  9. 4x^2-8x+3 to find roots, use quadratic formula x=(8(+/-)sqrt(8^2-4(4)(3))/8) =(8(+/-)sqrt(16))/8 =(8(+/-)4)/8 =3/2 and 1/2 Set all options equal to 0 and sub in either value of x, whichever statements hold true are correct a)2x+1= 0 (does not work for either value of x) b)4x+3 = 0 (does not work for either value of x) c)2x-3 = 0 (work for x=3/2, therefore this is a factor of 4x^2-8x+3 d)2x+3 = 0 (does not work for either value of x) Therefore 2x-3 is a factor of 4x^2-8x+3, the answer is C Sidenote: You should probably choose harder math problems :P
  10. Little mistake in the snippet (or atleast confusing), the way you have it setup, checkDoorIsOpen() will return false if the door is actually open, because if the door is open, the action read will be "Close". Just gotta switch if(actions.contains("Open") to if(actions.contains("Close") Edit: Nevermind, it's late and I didn't read the rest of the post :P Kinda weird though having a checkDoorIsOpen return false if it's open. Also, I keep getting a nullpointer when it tries to search for the action thats not there
  11. CONTEST ENTERY: Why OSBOT is Awesome: It lets me bot non-stop My Favourite Mod/Forum Mod Is: Laz I Prefer (Rap/Metal/Other): Dubstep
  12. ohhungry

    BETA v1.7.24

    Mine always fails the freaky forester random. Keeps killing the wrong pheasant
  13. I made 3mill the first day, thnx for the guide
  14. I just downloaded the Shop.jar file and used a build path to it. I'm kind of new to this whole thing though so I don't really understand what's going on when I import the files, I just kinda follow the steps :P
  15. I'm getting a similar error to one somebody else posted. Does anybody know what this is caused by? I can't seem to find any solution for it. java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.osbot.script.engine.ScriptManager.startScript(wh:97) at org.osbot.yA.run(mo:408) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: com/merccy/Shop/Shop
  16. Create a global instance of shop in your script. To do so, place this above your onStart method: Shop shop = new Shop(this); Here is an example of how you can use the shop after you have have created the global instance: if (shop.isOpen()) { ShopItem fireRune = shop.getShopItem(FIRE_RUNE_ID); //FIRE_RUNE_ID is a global int with value of 554 if (fireRune != null && fireRune.getAmount() > 0) { fireRune.buy10(); } } Thank you, this helps a lot, time to start coding
  17. I've just started to try out some bot programming. I've got a little bit of programming knowledge, but I'm finding it kind of hard to get going. I don't understand how to set up a new shop, or what a script object even is. I tried looking at the API but even that I'm having trouble understanding. If anybody could help explain some of these things to me that would be awesome.
×
×
  • Create New...