Jump to content

Sensei

Senior Members
  • Posts

    7925
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by Sensei

  1. I guess so this question is not full? What devices or things we can use during testing.. ? If I will rub magnet on needle, needle will become magnet (one rub in one direction is enough for mine needles). Then you can carefully place needle on water in glass, and it'll be pointing north-south direction, or point to the nearest strongest magnet. If I will rub iron on needle, nothing will happen. Needle won't change to magnet. Another test with f.e. aluminum pipe with enough hole placed vertically. Iron will pass through pipe at pretty normal speed and time. Magnet will be passing through pipe significantly longer (20 times longer in mine test). I have 2 meters long aluminum pipe with diameter 12 mm and 10mm diameter of hole, 1mm thickness of metal. Strong neodymium magnet (8mm diameter, 3mm height) will pass through it in 12-13 seconds. That's 20 times longer than other items than magnet. When I stacked 3 such magnets, time increased to 19 seconds. Items made of aluminum or iron with similar size to magnet are passing through it in 0.63 seconds approximately (too fast to count precisely using stopper, so used d=1/2*a*t^2 equation t=sqrt(2*2/9.81)=0.63 s)
  2. Repeating multiple times the same experiment is essential. Just yesterday I received shocking results that were quite senseless. And after repeating experiment, I found where error in measuring apparatus happened. Does water always was from the same source? Is it water from waterpipe? They can have additional small amount of Chlorine in gas form Cl2 + H2O -> HClO + HCl or others NaOCl, Ca(OCl)2, CaClOCl, or Chloramine. If water was not perfectly clear, after heating it, there could be additional reactions between Chlorine and other molecules present in dirty water, or container. Water was heated in plastic, metal or glass cup? I suppose so aunt was waiting until water has at least room temperature before giving it to plant? That's quite essential question. Temperature of water that we can stand putting hand inside, plant might not tolerate.
  3. In western countries, you pretty much have to double that age to be considered mature. After studies. After getting job. After starting living on your own, in rented or your own apartment. Maturity is state of mind. Not strictly correlated to age. Don't you think so that you should first truly learn about science, to answer somebody else questions.. ? What value has answer from somebody who barely know stuff in area he is trying to answer?
  4. Not quite. Any alpha decaying isotope is source of Helium-4. Alpha particle is Helium-4 nucleus. http://en.wikipedia.org/wiki/Alpha_particle
  5. It's kinda like saying that you will know positions, momentum, energies and charges of the all particles in entire universe.. Influence of charged particle that's at short distance can be to some level of precision measured. If electrons are f.e. at one capacitor plate, and absence of them on another plate, we can calculate what is charge on them and what is voltage between them. But if we take electron that's f.e. billion light years from here, it's influence is billion (or billion^2) times less powerful (any inverse-square law equation doesn't have limits for 'r' parameter, either in Newton's equation, nor in Coulomb's law). Physicists ignore it as regular practice. It's influence is negligible, ultra small, but higher than 0.
  6. Indeed. But human made devices never fly with v>30,000 m/s (or so). That's 0.1% of c. Voyager-1 has v=17,000 m/s relative to Sun.
  7. Rajnish Kaushik, read about Gold Foil Experiment http://en.wikipedia.org/wiki/Geiger%E2%80%93Marsden_experiment
  8. 15+6 =21 21!=51090942171709440000 5! = 120 6! = 720 5!+6!=840 51090942171709440000/840=60822550204416000 No fraction, so it's natural number. ps. I see you wrote "5", instead of "15". Which was later reedited and fixed to "15".
  9. If you will try dividing any number by 0 on computer in f.e. C/C++ language, you will get NaN result (Not A Number). http://en.wikipedia.org/wiki/NaN Some computer languages might even throw exception (halting of application, crashing of application). (.NET Framework C#/Embedded C++ is example of such language if I recall correctly) Therefor depending on context we can use f.e. if( value == 0 ) { // treating 0 as very very small. Division input by very small gives very big result (except 0/0). if( input > 0 ) { result = INFINITY; } else if( input < 0 ) { result = -INFINITY; } else if( input == 0 ) { result = 0; } } else { result = input / value; } Any dividing by variable might cause result to be NaN and serious problems in other parts of algorithms later (in the worst scenario lost of data, and crashing of application), if you don't catch it! You have to think about it writing ANY computer program which is dividing.
  10. But you're doing slightly different algorithm than me in post #4. Any example value that is causing it? I scanned the all first 1,000,000 numbers using two different algorithms and found 78,498 primes. Exactly the number we should get.
  11. It's the simplest possible code for range between 2 and 4 billions primes. You could degrade range to 2...65536 by replacing "unsigned long long" by "int". And degrading speed by removing sqrt() line. But I see no sense in this action. bool IsPrime1( int value ) { if( value < 2 ) return( false ); for( int i = 2; i < value; i++ ) { if( ( value % i ) == 0 ) { return( false ); } } return( true ); }
  12. If we will be writing code for you, you won't learn anything.. The simplest prime search code (copy'n'pasted from mine own application): bool IsPrime1( unsigned long long value ) { if( value < 2 ) return( false ); unsigned long long max = (unsigned long long) sqrt( (double) value ); for( unsigned long long i = 2; i <= max; i++ ) { if( ( value % i ) == 0 ) { return( false ); } } return( true ); } It will work with primes smaller than 4,294,967,296
  13. You are in one place dividing by variable. If it'll be 0, you will end up with error as well. You have to check whether it's equal 0.0 to prevent that. If sqrt() from negative is really needed you can try using following function instead: double negative_sqrt( double value ) { if( value >= 0 ) return( sqrt( value ) ); return( -sqrt( -value ) ); } It will make sure that you're not taking square from negative, and preserving sign of value. f.e. negative_sqrt( -100 ) will return -10 But it's not general purpose equivalent. It depends on context in which you might need sqrt(). -10 * -10 = +100 after all.
  14. The more important is lack of GR at quantum level..
  15. Take sqrt() only from positive numbers.. So use fabs()/abs() or equivalent code, to get rid of negatives... BTW, y[] is defined as float, so complex class sqrt() is never executed, only regular one.
  16. sqrt() the most likely is returning NaN (Not A Number) for negative input. The same happens with regular hand calculators (E letter appears etc.) http://en.wikipedia.org/wiki/NaN It's mentioned on wiki page "There are three kinds of operations that can return NaN: [...] The square root of a negative number."
  17. value ^ power is not working in C/C++ the way as in math. It's bitwise xor operator.. http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B
  18. It's better described on Electronvolt wiki page, than I can express it.. http://en.wikipedia.org/wiki/Electronvolt eV is simply alternative unit of energy, instead of Joules. eV/c^2 is alternative unit of mass.
  19. I found in shop such accumulator http://sklep.avt.pl/akumulator-zelowy-6v-4-5ah.html "pojemność (25 stopni C) 20 godzinna: 4.50Ah 10 godzinna: 4.28Ah 5 godzinna: 3.78Ah 1 godzinna: 2.70Ah" It means that capacitance is variable, and depends on how fast or slow, you will be utilizing accumulator. If you will be utilizing it for 20 hours, you will have capacitance 4.5 Ah = 16200 C. And you need I=0.225 A to last it that long. The faster you will use accumulator, the smaller capacitance. There is also showed dependency of capacitance on temperature in page that I linked. There is also showed spontaneous discharge of accumulator in 3,6,9 months..
  20. It won't affect functionality of your code, but better place prototype declaration outside of main() function (before it). In large sources, prototypes are usually put to separate files with .h extension (h = header). Then you can include them in multiple source files.
  21. calculate_area() doesn't mean cal_area()... They have to have the same name for both. You should have functions declared ABOVE main() where they're used. Otherwise you have to make prototype. Prototype for your function would be line int cal_area(int); Get rid of this "int" where is cursor, it's causing error.
  22. If that's all what you really have, the most visible error is lack of bracket. It should be int area(int m) { And error is obvious - you have uninitialized variable i Shouldn't you multiply by m? int calculate_area(int m) { return(m*m) } Better don't use the same name for variables and function name! Difference between uninitialized variable: int a; and initialized: int a = 0; or int a = b; Initialization means assigning some value to it. Uninitialized variable has random data so using it might result in crashing computer in the worst scenario.
  23. In star core there is happening nuclear fusion, which releases a lot of energy. You should read this article http://en.wikipedia.org/wiki/Nuclear_fusion
  24. Sensei

    Molar mass

    Because molar mass was earlier. The idea came from Amedeo Avogadro in 1811 http://en.wikipedia.org/wiki/Avogadro_constant He didn't calculate Avogadro const, he just came up with idea. Scientists calculate it hundred years later. f.e. take 18 grams of water, and 58-59 grams of NaCl, then pass current through it, and you will produce equal volumes of Hydrogen and Chlorine gases on electrodes, and 40 grams of NaOH will remain in container. You don't even have to know what is Avogadro const. Doing electrolysis of various materials/metals, you can calculate how much they lost mass. Electrodes are dissolved in solution, joining with oxygen and/or hydrogen. Containers which are normally collecting hydrogen and oxygen, will have different volumes of gases than in pure water electrolysis. f.e. electrolysis of iron made electrodes gives no oxygen on positive electrode - it's entirely immediately reacting with iron, and it's visible as yellow-reddish water. Electrode is literally disappearing. 1 hour is enough for me to wipe it out entirely. And water is totally opaque, yellow-reddish not transparent. But hydrogen container will be filled by gas - so we can easily calculate how much of oxygen reacted with iron. After heating such solution, to get rid of entire water, there will remain small amount of powder. We can also calculate its mass.
  25. In high energy physics electronvolt unit is simply useful and convenient. You can say "electron at 2 GeV" and everybody know what you had in mind. You can see example of usefulness of using eV in this thread http://www.scienceforums.net/topic/81036-nuclear-properties-of-isotopes/?p=788316 I don't want to hijack your threads. We would have to speak off-forum.
×
×
  • 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.