Homework Statement
A cannon has to fire a ball through a window in the wall. The window is 10 meters at the Y axis, and 8 meters (away from the cannon) at the X axis. The window is just slightly bigger than the ball (let's suppose that the dimensions are negligible). Find the required launching...
Hi guys,
I'm trying to find info with respect to twist angles of a turbine blade (for airplane engines, let's say)... I read somewhere on the forum that it's typically 0-20 degrees. I'm trying to look for quoted sources though or at least second opinions on that matter.
Thank you for the clarification!
One thing is still unclear. Why is the diode near Y0 is pointing up and not down? I mean, since C0 = Ground, Y0 should theoretically never be turned on because the current will always prefer to flow where there is no resistance.
Hey guys, I'm trying to wrap my head around this electronic schematics of a PLC, because I've started ladder-programming it. Can anyone explain to me why are there TWO diodes before the transistor? I get that one diode shows an "active" or "inactive" state when it's turned on or not. But why...
I see, Adyssa, thank you. Although it turns out there is a slightly more elegant solution. I just needed to do trim
<?php
$balance=1000;
echo "Welcome to your bank. Your balance is " . $balance . " Which action would you like to take? (w=withdraw, d=deposit) \n" ;
$user=trim(fgets(STDIN))...
AlephZero - how did you know that was the answer? That all I needed was to add [0]? Yes the program works now! :) Much appreciated!
But seriously, how did you know?
Yep, my assumption of fgetc made things more complicated than expected.
@ I Like Serena! :)
I'd have liked to say it works but it didn't, again it skips my if's. If your idea were true then PHP is clumsier than I would've imagined... I mean the program works perfectly fine using 1 or 2 instead... why can't a similar function work the same way for letters?
@mfb...
Haha! Yes I moved from mechanical engineering to PHP. I didn't like this manly field to be honest. I was the only girl in class. At least now there are 6 others with boobs. :P yay for not feeling the odd one out..
Well since the last program I posted works, I assume I did that part right. I...
I used fgetc because it seems to approved of me using characters instead of numbers. The funny thing is that I actually got it to work by only working with numbers. I used "1" and "2" instead of "w" and "d" to be my user input and voila, now the program works. Go figure, right?
I still...
Hi chiro! It's a tad different since we're working from command prompt, so I'm not sure we can integrate HTML yet until we start working with php via browsers. Oh well, I've been refraining to ask my teacher for help to be more independant, maybe it's about time I'll hassle him.
Hey folks! Wow...been a while since I posted here.
So this ought to be a simple script I'm running in Command Prompt, but it completely skips the part where it asks the user to enter a number (after asking how much would you like to withdraw (or deposit) )
What gives?
<?php...
I admit I used the term rather loosely, perhaps too loosely forgetting this is physicsforums and I'm going to a well-deserved e-admonition, but yes, I'm aware of the differences :) Hysteresis, repeatability, resolution etc... yes, accuracy has many parameters. Regardless, thank you :-) This...
Hi chrio.
True...true. I'd imagine that English has some sort of upmarket value in this industry...
Well then, provided those European companies don't require me to be native in their country language/s (at least not all of them), I'm rather inspired about giving it a shot.
Still if anyone...
So it's the difference between an 8bits ADC, 16 bits ADC or 32 bits ADC that determines the accuracy I was talking about?
Or, can you also just increase the amount of code and get the same accuracy?
Really? Interesting... that explains why in none of the many articles I read on this issue, accuracy wasn't mentioned. All that was mentioned in terms of the 32bits advantages is:
I guess that's indeed all.
Thanks for the answer :-)