Euclid's algorithm in c++
9 more posts in this thread. [Missing image file: 1351704917461.gif]
Hey /sci/, I am trying to implement Euclid's algorithm in c++ in a recursive way. However, after I insert the numbers, the .exe wont respond anymore. I am using code blocks and Win 7 x64. Anyone got a hint for me? gifs in return.
using namespace std;
int euclid(int m, int n)
cin >> m;
cin >> n;
Negative harmonic frequency?
0 more posts in this thread. [Missing image file: 200976234336380.jpg]
I went to an electronics sale with the Amateur Radio Club, and I got a bunch of 2n706 transistors. They're small, metal can, and can handle pretty high frequencies. I found this circuit (see the picture) that I was going to turn into a small radio jammer.
The schematic calls for an exactly 8MHz crystal, but I only have a 16MHz one. I know that it's usually possible to use a crystal at half the frequency, and the second harmonic will make it resonate, but will it work if I use half the harmonic? I know I'll get 16MHz at the output, along with harmonics 32MHz and up, but will I get subharmonics?
>>Td;lr: If I use a resonant circuit in a crystal controlled transmitter, will I get half of the harmonic (0.5f) in the output, instead of 2f, 3f etc?