Please humor this question. I know it is ridiculous but please give me your best answer.
Suppose a young EE student has seen the light and wants to become a master RF engineer. He wonders what the fastest and best possible way to go about this process as opposed to the non-linear path many...
I'll try to get the information you requested as soon as possible (it might be a day before I can go back to the shop).
In the meantime how will knowing these things guide your decision (I'm trying to learn, not just get an answer :) ). I don't think tensile strength will matter because the...
I don't know how much load. It's operated by hand so I guess however much a person can apply. How should you measure this?
We were planning on using a lathe to make it. I was thinking of just buying a rod. Can you not use a lathe for plastic?
I was thinking of tapping the smaller cylinder so...
Hello. MechE noob here. I'm an ECE guy and I'm apart of a group of students working on a solar car. I decided I wanted to get more mechanical experience so I joined one of the ME teams. However, before they let you work on real stuff they make you go through smaller projects.
So my first...
I am trying to heavily optimize a piece of code in C as well as MIPS assembly. Here is a link to my code: http://dl.dropbox.com/u/7264839/P1-3.c [Broken]
http://dl.dropbox.com/u/7264839/P1-4-1%20new.asm [Broken]
The problem is find the number of intersections between 1 pixel wide lines of...
Can you give me an example of these masks? The only kind of masking I know of is bit masking and I'm not following how to use them here. Thanks for the idea, though!
EDIT: By the way, there are only 7 different colors.
Hello, there's this problem about line crossings I saw somewhere and was trying to solve.
There's a 64x64 grid of 8 bit pixels and it has a bunch of 1 pixel wide vertical and horizontal lines of different colors on it. All parallel lines have at least one space between them. The problem is...
IDEs are bloated and slow usually and makefiles are confusing to write by myself. I was just wondering what you experts do to organize and compile projects with.
OK, I found the problem.
My arrLen function was returning too many elements. I have to find the length of the input array, which I wrote my general purpose function for counting the length of an array. The problem was when Load_Mem() (which I didn't write) didn't put a terminating character...
OK, the argc problem was just a stupid mistake on my part, but I still don't see why the program exits with code 1 at the end. By the time the array is sorted (which is clearly shown) all "exit(1)" statements have been passed and the only return statement left is the final "return 0;"
EDIT...
Thanks for the help.:approve:
So the return character is necessary to finish the input how do I get rid of it and only it before the while loops condition is checked?
Here's a picture of what happens when the program finishes, although I don't think it will help much. Also, I don't think...
Homework Statement
I have to write a program that takes in a file that looks like this:
3424: 313
4334: 543
etc.
and sorts the numbers on the write. Everything for getting the file into an array was done for me so I know it's correct. I'm having two strange problems. First, whenever I'm...
Hello all, I will be going to Uni soon as either an EE or a CmpE (probably CmpE). I appeal to your experienced selfs and ask if you could recommend some books/topics/activities that you think I should read/know/do or that you wish you had had before you started off. I know the physics and basic...
Well, seeing as I'm just reading for fun I was hoping you would suggest fields you find interesting. But here's some prospective items. Number theory and graph theory sound the most interesting. Also, I have to learn probability and statistics in the future so that counts too.
I'm just a humble engineer. I've taken the standard slew of math courses everyone takes (Calc, diff eqs., linear algebra) and I enjoyed them but I want something more. The world of math is so vast that every time I try to branch out I get lost and give up. Do you guys have any suggestions for...
Homework Statement
13. (6 points) Draw an ASM chart for a computer that has three instructions: BNZ, AND, LD.
14. (6 points) Draw a block diagram for a datapath that contains: an 8-word, three-port register file; an ALU that accepts operands either from the datapath or from an external...
Thanks! I have taken physics 2 so I know theory and basic electronic components but what about learning to build circuits? Textbooks tend to be overly wordy and geared towards people with experience already.
Hello, I'm just a poor little boy who is mystified about getting a start in the wonderful world of electronics. Do any of you have suggestions for books, tutorials, starter kits, etc. that you think are particularly effective in teaching fundamentals and setting you on the path to becoming a...
Hello, I'm a bit of a noob so bear with me. I have gotten all of this to work on one computer but on installing it on another computer I've run into problems. I followed the instructions at this link
http://blog.karthiksankar.com/configuring-cygwin-with-netbeans-in-windows/...
Homework Statement
I'm given that the sum from k = 0 to N-1 of e^(j*2*pi*k/N) + 0. Then there's some code.
tt = 0:1:1000;
xx = 0*tt;
for kk=5:11
xx = xx + 99*cos(0.006*pi*tt + 0.25*pi*kk);
end
plot(tt,xx), title(’SECTION of a SINUSOID’), xlabel(’TIME (sec)’)
The plot made from the vector...
I want an array of size (ROWS * (COLS + 1) + 1). COLS is the number of visible columns. The newline character will be the (COLS + 1) column. That's why there is a + 2. The other + 1 is for the null character.
I added this at the end of the clearScreen function. screen[SIZE - 1] = "\0";
but...
Sorry about the formatting. It's set up like this:
R COLS \n
O
W
S
So the actual number of columns is COLS + 1. I have revised the function but it still doesn't seem to be working correctly.
void clearScreen(void) {
int c, r;
c = 1;
for(r = 0; r...
Thanks a lot. I have one more question. I'm trying to come up with a function that will clear the screen. By that I mean fill it with white space except at the end of each row which should be a newline. I can't figure out the math for placing the newlines.
void clearScreen(void) {
int c...
I have a long char array of empty spaces and newlines for each row. I want to take in a coordinate pair (row,column) and be able to change that corresponding point into an asterisk. For the life of me I can't figure out how to index correctly. I know the below attempt is wrong. Any help would be...
I posted this problem here because I would like to know a reliable method for solving such a thing.
(5e^(j*a))(3 + j*b) = -25 Find real numbers a and b satisfying the preceding equation.
I converted it to get 5*sqrt(9 + b^2)*e^(j*a + j * arctan(b/3)) = -25. I don't really see where to go...
Wait a second. When I get b and try to solve for a I get two different answers. Is there a simpler method to solve with, though, without linear algebra?
"What are the geometric interpretation of r and ϕ? Where does -25 lie on the complex plane?"
r is the magnitude and phi is the angle ccw...
Oh yeah. What was wrong with the way I converted it? How come the minus sign wasn't preserved? Edit: Rather, how am I supposed to preserve the minus sign. I see nothing wrong with my conversion method.
"If w and z are complex numbers such that w=z, then |w|=|z|, etc."
But if I convert back to...
Homework Statement
(5e^(j*a))(3 + j*b) = -25 Find real numbers a and b satisfying the preceding equation.
There are two different answer sets for {a,b} so find both of them.
Homework Equations
e^(j*a) = cos(a) + j*sin(a)
The Attempt at a Solution
I converted it to get 5*sqrt(9...