Search results

  1. B

    Fastest way to become RF engineer

    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...
  2. B

    Choosing a material for a mill handle

    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...
  3. B

    Choosing a material for a mill handle

    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...
  4. B

    Choosing a material for a mill handle

    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...
  5. B

    Line intersection algorithm optimization

    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...
  6. B

    Line crossing algorithm?

    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.
  7. B

    Line crossing algorithm?

    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...
  8. B

    How do you compile C?

    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.
  9. B

    Strange glitches in my C sorting program

    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...
  10. B

    Strange glitches in my C sorting program

    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...
  11. B

    Strange glitches in my C sorting program

    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...
  12. B

    Strange glitches in my C sorting program

    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...
  13. B

    Question about going into EE/CmpE

    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...
  14. B

    Studying Good books/blogs/ etc. for advancing in math

    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.
  15. B

    Studying Good books/blogs/ etc. for advancing in math

    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...
  16. B

    Datapath and ASM chart questions

    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...
  17. B

    Question about getting started with electronics

    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.
  18. B

    Question about getting started with electronics

    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...
  19. B

    Netbeans/cygwin installation problem

    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/...
  20. B

    Complex numbers question

    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...
  21. B

    Beginner's C question

    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...
  22. B

    Beginner's C question

    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...
  23. B

    Beginner's C question

    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...
  24. B

    Beginner's C question

    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...
  25. B

    Solving complex exponentials

    Yes. that's what I tried.
  26. B

    Solving complex exponentials

    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...
  27. B

    Complex number equation

    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...
  28. B

    Complex number equation

    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...
  29. B

    Complex number equation

    The righthand side would be sqrt(-25^2 + 0)*e^(j*arctan(0/-25) which is just 25*e^0. I don't see how that helps.
  30. B

    Complex number equation

    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...
Top