Jump to content

Sensei

Senior Members
  • Posts

    7943
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by Sensei

  1. Number of [math]\pi[/math] is 10[math]_{\pi}[/math], if we will use base-[math]\pi[/math] numeral system..
  2. Nonsense. Heated metal melts and oxidize if there is present air with Oxygen 1. If you apply voltage counted in millions of volts, current passing through conductor unprepared (not designed) for such high voltages, will within milliseconds or microseconds reach melting temperature and burn wire breaking circuit. That happens in majority of electric and electronic devices. It is just a matter of applied voltage. e.g. fan is stopping working in computer power supply unit, which is transforming from 230 V/110 V AC to 12V/5V DC. It is starting giving larger voltage than it should e.g. 13-15 V, and motherboard, CPU and peripheral devices designed for 12V are damaged. Materials have various resistivity [Ohm*m]. Multiplied by area [m^2] of object and divided by length of object [m], gives resistance in Ohms. Conductors have very small resistivity thus very small resistance. Insulators have extremely large resistivity thus very large resistance. But neither resistivity nor resistance nor impedance is constant. It varies as a function of temperature and pressure. There are insulators that start conducting after heating them to the right temperatures under very large pressures. And there are conductors (at room temperature conductors!), which after cooling down to very low temperatures (below 90 K), become superconductors, as measured resistance is 0 (or close to 0). Drop of voltage on superconductor is indistinguishable from 0 V. Current passing throw conductor is heating it. As I mentioned earlier resistivity/resistance depends on temperature. Conductor which is heated due to electrons colliding with its atoms is worse resistor. Wire is also resistor. But with extremely low area and very large length 2) Heated metal melts and oxidize if there is present air with Oxygen1. 1) Therefor the first lightbulbs had vacuum, later replaced by inert gas at low pressure. 2) Imagine wire conductor with resistivity 1 ohm * m and 1 mm diameter and 1 meter long. R=p*A/l = 1 [ohm *m] * PI * (0.0005[m])^2 / 1[m] = 7.854e-7 ohm. Drop of voltage on such element will be extremely small. Heated metals expand, therefor cross-section area A, diameter and length of wire, will be changing as function of temperature.
  3. That's still wrong.. Actually wronger than previous..
  4. In one line you entered the correct value, and one line later you entered wrong value.. Recheck them.
  5. Incorrect. Typo. OK. Incorrect.
  6. .NET Framework String class implementation: https://docs.microsoft.com/en-us/dotnet/api/system.string.intern?view=netframework-4.8 "The common language runtime conserves string storage by maintaining a table, called the intern pool, that contains a single reference to each unique literal string declared or created programmatically in your program. Consequently, an instance of a literal string with a particular value only exists once in the system."
  7. Isn't this algorithm with cutoff like self-fulfilling prophecy.. ?
  8. Explosives, including dynamite, are creating blast wave (which can be seen on fast recording cameras), later comes debris of elements that were on path of explosion. Shock wave, blast wave arrives the first, later material debris, and they together cause injury in humans and destroy infrastructure. e.g. explosive material is put to inside of grenade. What kills people around explosion? Small metal debris of grenade, not explosive material directly. So, no, you did not invent a thing which will help you survive an explosion. Unfortunately.. So, stop spreading this nonsense.
  9. When someone is talking about invention of agriculture is really thinking about seeding and harvesting grain. It is inedible raw! Human had first to figure out how to process grain by blending and mixing it with water and placing on hot stone heated by fire to make pancakes to make it edible. It is not so straight forward and obvious. Attempt of eating unknown plants might end up in death if they are poisonous. Somebody had to be the first one to try every currently known plants, including toxic and poisonous. Knowledge which plants are edible is shared by older generations. Easy to lose knowledge in the world without even paper..
  10. You're going, like I in the first source code, from 1, and increasing loop counter. Try going from half of range, and then decreasing by 1, till it's bigger than 0. BTW, we can see your code gave wrong answers, e.g. 1.001: 33033 33000 It should be 1001/1000, isn't?
  11. You cannot enter numbers like this to computer.. Decimal number parser (and entire decimal number C++ class) would have to be modified to support parenthesis, and then keep number as a p/q instead of regular number. It has (infinitely) repeating decimal period. 1.(210526315789473684) https://en.wikipedia.org/wiki/Repeating_decimal Other examples: 1/3 = 0.33333(3) 4/3 = 1.33333(3) Check section "Converting repeating decimals to fractions" in the above article.
  12. I made little brute-force algorithm for you. Executable is in Release folder. // RationalSeeker v1.0.1 (c) 2019 by Sensei : main project file. #include "stdafx.h" using namespace System; int main(array<System::String ^> ^args) { if( args->Length == 1 ) { try { String ^arg = args[ 0 ]; Decimal rational = Decimal::Parse( arg ); Console::WriteLine( L"Rational " + rational ); Decimal temp_rational = rational; Int64 temp = 1; while( Math::Floor( temp_rational ) != temp_rational ) { temp_rational *= 10; temp *= 10; } Int64 integer = (Int64) temp_rational; Console::WriteLine( L"Integer " + integer ); Int64 half = integer / 2; for( Int64 i = 1; i < half; i++ ) { if( ( ( integer % i ) == 0 ) && ( ( temp % i ) == 0 ) ) { Int64 numerator = integer / i; Int64 denominator = temp / i; Console::WriteLine( numerator+ L"/" + denominator + L"=" + rational ); //break; } } } catch( Exception ^e ) { Console::Error->WriteLine( e->ToString() ); } } else { Console::Error->WriteLine( L"Required parameter missing!" ); } return 0; } It first get rid of fractional part by multiplication by 10 in the loop. Then goes in the second loop through the all numbers from 1 to half of integer (it could go through the all primes including 1 instead, but first we would have to have array of the all primes). Edit: fixed variable names, and decreased archive size considerably.. RationalSeeker.zip ps. If you want to find it faster, replace: for( Int64 i = 1; i < half; i++ ) { by for( Int64 i = half; i > 0; i-- ) {
  13. ..there is infinite quantity of answers.. 102/100 = 1.02 204/200 = 1.02 306/300 = 1.02 [...] 1020/1000 = 1.02 etc. etc.
  14. Mass of what? Mass of small things is measured on weigh. Mass of uniform things is calculated from average density muliplied by volume of an object. e.g. mass of the all oceans can be calculated from volume, obtained from depth maps, muliplied by density 1 kg/L. Mass of astronomical objects like planets is calculated from gravitational acceleration of an object. Mass of macroscopic objects is sum of masses of constituents. Measure mass of single average grain of sand, calculate volume of a beach, and you will know average quantity of grains. The same is with atoms. Therefore we can convert mass to moles in chemistry.
  15. There are studies measuring correlation of results in IQ tests of differently related siblings. Single egg twins, two eggs twins and regular siblings. https://www.mun.ca/biology/scarr/IQ_Correlations.html
  16. There is no "intelligence gene", but there are genes responsible of control of how well brain is feed by nutrients and controlling oxygenation of the brain. https://www.google.com/search?q=oxygenation+of+brain+intelligence Nutrition of a women in the prenatal phase, nutrition of a newborn child and later development of human being has influence of intelligence. In countries (or regions of the Earth) where there is food shortage, due to costs and availability, people have worse average IQ. People to become intelligent require stimulation of the brain, during childhood, and later in life. Again, it is easier for people and families who don't fight every day to survive.
  17. Because it is diluted to ~10%. In ready dish even more diluted. You also did not have severe burns from hydrochloric acid which is in your stomach. Apart from bases, https://en.wikipedia.org/wiki/Base_(chemistry) Hydrogen Peroxide perhaps? https://en.wikipedia.org/wiki/Hydrogen_peroxide#Safety "In high concentrations, hydrogen peroxide is an aggressive oxidizer and will corrode many materials, including human skin. In the presence of a reducing agent, high concentrations of H2O2 will react violently."
  18. Yeah. Burst of neutrinos from supernova will come the first. Then red alarm for Hubble telescope...
  19. It is acid and OP said: "I am not necessarily interested in things which would cause severe burns like acid".
  20. Looks to me, that everything is given on the plate...
  21. In Zeeman effect spectral lines of some elements, in presence of external magnetic field, are split to couple lines, which depends on spin. https://en.wikipedia.org/wiki/Zeeman_effect
  22. Compound composed of Carbon, Hydrogen and Oxygen will have generic formula CxHyOz where x,y,z are your unknowns. ..from the above you know that z=x ... what with y?
  23. If you don't know molar mass of compound, search net for specific keyword, open Wikipedia article about it and read it.. If you know molar mass of elements (or atomic mass, or number of protons and neutrons in the case of element like Aluminium) present in compound, you can calculate approximate molar mass of compounds created with these elements. e.g. O2 is 16 g/mol + 16 g/mol = 32 g/mol, because Oxygen has 8 protons and 8 neutrons (O-16 is the most abundant isotope of Oxygen, O-17 and O-18 are in meaningless quantity).
  24. Theory in science does not mean the same as theory in civil world.. https://en.m.wikipedia.org/wiki/Scientific_theory
  25. You can't see laser beam in cosmos as there is no medium. You can see laser beam in air just because some photons are bouncing from air molecules and diffuse (effect is the strongest in fog or dust i.e. microscopic water molecules ).
×
×
  • 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.