Jump to content

Sensei

Senior Members
  • Posts

    7931
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by Sensei

  1. That's good idea. Without mastering easy projects, there is no sense going any further. That's silly project.. Code42, after some basic stuff, build your own 3D printer/2D plotter/CNC There would be needed three stepper motors, to control axes x/y, and z (up/down movement of header). So, mastering how to use one stepper motor, in 1D, from your own computer program, would be reasonable start. In human-robot project there would be dozen of dozen such motors, to control every finger..
  2. j++ is shortcut of j=j+1 It means assign value j+1 to variable j. In other words, increment it by 1. In C/C++ the all integers, everything, are binary, all the time. Just to display them to user they're converted to ASCII strings. It's done by f.e. printf(). http://www.cplusplus.com/reference/cstdio/printf/ printf() formatting code "%d" means display decimal number, there are equivalents for hex, floating point, and so on. If user is entering decimal number, ASCII string must be converted to binary integer/float to computer be able to do any math operation on it. It's done by f.e. scanf() or sscanf(). http://www.cplusplus.com/reference/cstdio/sscanf/ If you have loop for( int i = 0; i < 10; i++ ) { printf( "i=%d\n", i ); } It will display i=0,1,2,3,4,5,6,7,8,9 j+=2 is shortcut of j=j+2 In other words, increment it by 2. If you have loop for( int i = 0; i < 1000; i += 100 ) { printf( "i=%d\n", i ); } It will display i=0,100,200,300,400,500,600,700,800,900 So, when I wrote in 3rd optimized code version: for( int i = 3; i < n; i += 2 ) i variable will have assigned 3,5,7,9,11,13,15,17... There is no way to skip yet another 5,10,15,20,25,30,... It would require adding line: if( ( i % 5 ) == 0 ) continue; But 5 is in array at list[2], so such modulo will be executed (in internal loop) very quickly, and skipped Code: for( int i = 3; i < n; i += 2 ) { if( ( i % 5 ) == 0 ) continue; printf( "i=%d\n", i ); } would display 3,7,9,11,13,17,19,21,23,27 with 5,15,25,35,.... skipped
  3. Not really. [math]^4_2He + 19.82 MeV \rightarrow ^3_1H + p^+[/math] Take mass of Helium-4 4.0026 u multiply by 931.494 MeV/u subtract 2 electrons 0.511 MeV each, you will receive 3727.38 MeV Repeat the same with Hydrogen-3 3.01605 u you will receive 2808.92 MeV. 3727.38 MeV + 19.82 MeV = 2808.92 MeV + 938.272 MeV (without taking into account momentum) Helium-4 has one of the largest energies needed to eject proton or neutron, from the all isotopes.
  4. Did you try to get replacement screen? https://www.google.com/#q=Samsung+Series+9+laptop+display+replacement
  5. This sounds to me like method of electrostatic charging..
  6. How about making "fake modified T-cells", which have CCR5, like original one, but everything else in them is disabled. So once they are introduced to human body (drip), they are capturing majority of viruses from blood. Later they can be identified by unique part on surface (due to modification), and expelled from human body.
  7. You don't understand. There is nothing to skip in internal loop (except "2" in entry list[0], because I incremented i+=2 in outer loop (instead of i++), in "optimized version"). Computer does not know whether f.e. i=%1 0010 1011 1110 0101 0110 0001 is dividable by 5 or not, until cpu will reach line if( ( i % 5 ) == 0 ) 5 is in entry list[2], reached very quickly. Instead of using built-in type "int" programmer can make custom class Integer, with overloaded operator of modulo, and implement the whole math dynamically. If it's in range 32 bits, use unsigned int, after exceeding 32 bits, use unsigned long long, after exceeding 64 bits, use dynamically allocated buffer with size limited only by free memory.
  8. It's easy for human because of using decimal system, but computers use binary system, and easily they can skip only 2,4,8,16,2^n etc. f.e. 255 in binary is %11111111 250 in binary is %11111010 How do you want to skip numbers ending up 0 or 5, without using modulo (at least)? i modulo 5 will be 3rd in internal loop (2,3,5,7,11,....) and in my optimization, it'll be 2nd in internal loop. Very quickly found in array and skipped.
  9. "In chemistry, a radical (more precisely, a free radical) is an atom, molecule, or ion that has an unpaired valence electron." https://en.wikipedia.org/wiki/Radical_(chemistry)
  10. What profit are you expecting from such small amount as $1000... ? 100% of profit will be $1000.. On stockmarkets people are happy if they have >10% per year, which means $100 from your $1000. If you have f.e. slow computer, slow Internet, and long waiting for end of operation, then investment in new computer will save you money in future, as you will be able to work faster. If you don't know programming then investing in C/C++/Java book $20 can give you in future enormous profits, much larger than these $1000. If you don't have 3D modeling application, then investment in such app, and making f.e. mobile phone game, can give you many thousands or even millions, depends whether people will like it or not. It even does not have to be pretty. Idea is the key.
  11. Because it's science forum, everybody will say "invest in education" the most likely..
  12. What David proposed in post #2 is not "Sieve of Eratosthenes". Sieve of Eratosthenes pseudocode is https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes Input: an integer n > 1. Let A be an array of Boolean values, indexed by integers 2 to n, initially all set to true. for i = 2, 3, 4, ..., not exceeding √n: if A[i] is true: for j = i2, i2+i, i2+2i, i2+3i, ..., not exceeding n: A[j] := false. Output: all i such that A[i] is true. (it's begging for using bitwise logic operations and 8 times decrease memory needed for array) What he proposed in post #2 was something like: list.append( 2 ); for( int i = 3; i < n; i++ ) { bool found = false; for( int j = 0; j < list.count; j++ ) { if( ( i % list[ j ] ) == 0 ) // modulo { found = true; // divisible by some prime break; } } if( found == false ) list.append( i ); // append yet another prime to array.. } Output array contains nothing but primes. But better would be to skip the all even numbers, since the beginning: list.append( 2 ); for( int i = 3; i < n; i += 2 ) { bool found = false; for( int j = 1; j < list.count; j++ ) { if( ( i % list[ j ] ) == 0 ) // modulo { found = true; // divisible by some prime break; } } if( found == false ) list.append( i ); // append yet another prime to array.. }
  13. Elements with more than 82 protons in nucleus are unstable or extremely unstable.
  14. Definitely Van de Graaff generator, capable to make dozen millions of volts. Presentation of spectral lines of couple different gases, and how they are split on prism. Presentation of how they are absorbed by medium (absorption spectrum), and emission spectrum, how they change after turning on/off external magnetic field, and how they are used to identify elements. Mass spectrometer. Electron microscope. Large size electric cooled Cloud Chamber. Planetarium. Real-time transmission from ISS from various cameras outside and inside of station.
  15. No matter if you write good or wrong about crackpot website, but if you include link to website from scientist website, search engine will find link and increase rank of such website automatically.. Search engine does not judge messages about link, just presence of link..
  16. It would help if you knew enough marketing (and how internet search engines work, and how they rank links) to understand when people want to put you something behind the story..
  17. This link point to creationist's ark! Are you blind?!
  18. Are you here just for advertise this rubbish... ??
  19. Children. In majority children of intellectual parents, who have vision about mental development of their offspring. For the same reason why family goes to zoo, to see wild animals. Lonely adults are minority. Children visiting museum usually pay nothing in preschool age (when they're the most interested in learning about world), and half the price in school age.
  20. Examples of jobs that you gave, some device builders, are IMHO examples of intellectual work. Especially if projects are designed by them and each one is unique. That requires a lot of thinking about how to solve problems. Actually I had couple projects as carpenter recently in this and previous year. I started them from designing in 3D modeling computer application to visualize everything prior starting cutting planks.. Thinking how to successfully join two or more pieces of wood without using screws, nails nor glue. It took days and weeks of thinking how to do it properly. Example of such joint.. if you're interested. I think it's bad for person, if he/she can't find peace outside of workplace.. It disallows fully rest after work and enjoy free time..
  21. Hijacking means introduction of 3rd party idea/hypothesis/theory into somebody else thread. If you stay in your own thread discussing there your hypothesis/theory, there will be no hijacking. At the worst case, thread could be locked by mods, if you won't be participating in discussion (soapboxing), by not answering other members questions and raising doubts about theory or providing counter-arguments disproving it (typically results of experiments rebutting hypothesis).
  22. Yes, we can change one element to other element. Usually it's done by bombarding it by free neutrons (which have to be created first). Free neutron has no charge, therefor there is no Coulomb barrier to fight against. https://en.wikipedia.org/wiki/Coulomb_barrier Nuclear reactors are creating free neutrons that can be used in transformation. But the main problem is scale. If you have 1 gram of Gold, it has 1 g / 197 g/mol = 0.005 mol 1 mol is 6.022141*10^23 atoms. https://en.wikipedia.org/wiki/Avogadro_constant Therefor 0.005 mol is 3.06*10^21 Gold atoms.. It's billion multiplied by billion multiplied by 3060. If you would make billion transformations of one element to other element per second, you would have to wait approximately 100 thousand years to get 1 gram of Gold.. Lead has more protons than Gold. Lead has 82 protons, Gold has 79 protons. After capturing proton it would transform to Bismuth, not to Gold. It's professionally called proton capture. https://en.wikipedia.org/wiki/P-process Equivalent for neutrons, neutron capture. https://en.wikipedia.org/wiki/Neutron_capture Gamma photon with very high energy can destroy atom. It's called photodisintegration. https://en.wikipedia.org/wiki/Photodisintegration Lower energy x-ray and UV photon can ionize atom (electron is ejected from it). https://en.wikipedia.org/wiki/Ionizing_radiation Even lower energy photon can make photoelectric effect in some metals. https://en.wikipedia.org/wiki/Photoelectric_effect
  23. You misinterpret this quote entirely.. Einstein was thinking from point of view of absolute determinism, while in Born's point of view, everything is result of probability. One could say that Einstein rejected free will, while Born was supporting it.. Somebody jumps from 1m and nothing happens (at worst case broken bones), somebody else jumps from 10m and is dead.. Curvature and geometry will decide whether you're dead or alive.. ? Curvature/geometry will decide whether glass will break apart, or remain solid piece.. ?
  24. Suppose so you're on board of rocket at the beginning of thought experiment, with v=0 m/s. On board you have laser and mirror at d distance from it. Time needed to send and receive beam of photons is t=2d/c Imagine rocket is accelerating to v=0.25c repeat above measurement and it's still the same t, Accelerate rocket to v=0.5c, repeat measurement, and still the same t, Accelerate rocket to v=0.9c, repeat measurement, and still the same t, Accelerate rocket to v=0.99c, repeat measurement, and still the same t..
  25. If it would be written like "light is photon, with energy E=h*f, momentum p=E/c, where h=6.62607004*10^-34 J*s, f- frequency in Hz = 1/T = c/wavelength, c=299792458 m/s,wavelength in meters, but photon energy is not constant, it depends on who/what is detecting photon, in which FoR (Frame of Reference he/she/it is), so one can perceive photon redshifted (Relativistic Doppler Shift) f=f0 sqrt(1-v/1+v) and other one can perceive photon blueshifted f=f0 sqrt(1+v/1-v), photon has polarization" and so on, so on, nobody at the time, would understand any tiny bit of it... As they didn't know math, nor physics, nor quantum physics.. Explanation of nuclear fusion in the Sun (or any star), and how light-photons are created by the Sun.... would open even more questions than about properties of photons.. Go to any city/village and ask random people what they know about protons, electrons, photons, what is mass of electron, charge of electron, mass of proton, charge of proton, what is speed of light, and so on, so on, and you will notice nothing but unbearable incompetence..
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.