Recent content by RaamGeneral

  1. R

    Challenge: Find the minimum amount of draws possible for a list of integers

    For the context of this problem f(x, x) is undefined, but does_draw still works as expected. In fact a pair may either produce a loop of results (never reaching any (x, x)) or end up in (x, x), which is what does_draw lets us know (it can do of course by generating and inspecting results of...
  2. R

    Challenge: Find the minimum amount of draws possible for a list of integers

    You're right about the function, I should show some examples or be more clear. In fact I was unprecise f(a, b) = (2a, b-a) if a<b (a-b, 2b) if b<a Examples: not does_draw: 0: (4, 6) 1: (8, 2) 2: (6, 4) 3: (2, 8) 4: (4, 6) does_draw: 0: (3, 5) 1: (6, 2) 2: (4, 4)I'm pretty...
  3. R

    Challenge: Find the minimum amount of draws possible for a list of integers

    Hello. Sorry if the title is a bit vague. I'm doing this challenge (google foobar) and even though it's not very elegant to ask for help, it's not like I'm going to win any kind of prize for it. In any case I'd like some suggestions since my current solution fails 2 tests on 5. The most...
  4. R

    What Could the Hidden Math Formula on This Shirt Be?

    Damn, must be hopeless then. I took the picture some time ago, maybe with another phone, I don't know, maybe it was night and the light in my room was weak. I remember that I tried to take multiple pictures because the writing wasn't visible, but to no avail, then I gave up. The drawing was...
  5. R

    What Could the Hidden Math Formula on This Shirt Be?

    Hi. I apologize if this thread is too stupid or if this is the wrong section. I made a drawing a long time ago: This should be "random man", and I bet that in his shirt there is something math/physics-related, maybe a formula. Do you have any idea? I don't remember and nothing comes to mind...
  6. R

    I Inequality with integral and max of derivative

    Hi. I was reading Lighthill, Introduction to Fourier Analysis and Generalised Functions and in page 17 there is an example/proof where I can't make sense of the following step: $$ \left| \int_{-\infty}^{+\infty} f_n(x)(g(x)-g(0)) \, \mathrm{d}x \right| \le \max{ \left| g'(x) \right| }...
  7. R

    Resources/sites for online courses

    Hello. I'm looking for a list of resources or sites that offer online courses especially at university level, of course also paid. The subjects I'm interested in are, among others, physics, mathematics, chemistry, computer science, biology, ... Let's say I want to make good use of my free time...
  8. R

    Comp Sci Learning C++: Fixing Class & Vector Error

    Hi. I wonder what you are trying to do here. Anyway, if you insist on having a private constructor for class2, you can solve by declaring class2 like this: class class2{ friend class class1; class2(); int x; int y; char z; }; Try and let me know how that goes.
  9. R

    I "Define" ℕ from ℤ or ℝ from ℂ, etc....

    We can easily define, for instance, complex numbers starting from (as a couple of) real number: z = (a,b) ∈ ℂ with a,b ∈ ℝ and the property (0,1)^2 = (-1,0) We can define integers in a similar manner starting from natural numbers: https://en.wikipedia.org/wiki/Integer#Construction And rational...
  10. R

    Does thermodynamics tell us that life will eventually end?

    After all the nonsense I said, I think it's time to meditate on this on my own. Do you have any book to suggest about this topic?
  11. R

    Does thermodynamics tell us that life will eventually end?

    Thank you all for the replies. I understand that the final answer seems to be that life exists whenever it can use any form of energy available. This means that, given enough time, some kind of life form may come to exist even on the moon. Is that correct? But, if the moon is about 4 billion...
  12. R

    Does thermodynamics tell us that life will eventually end?

    I mean, the energy useful for sustaining life. Every living being in order to survive needs the energy of other living beings, it cannot survive only through the energy of the sun as I explained I believe in the 4th paragraph. But CWatter just explained that vegetation is able to produce life...
  13. R

    Does thermodynamics tell us that life will eventually end?

    Hi. I apologize if this question has already been made. Unfortunately it's also difficult for me to formulate, especially in english. If you consider the Sun and Earth as an isolated system, where the Sun is able to produce energy indefinitely (it's not going to become a red giant), will life...
  14. R

    What is an electrostatic/Coulomb barrier? How is it created?

    If you take two protons there are two different forces between them: one is the long range repelling electrostatic force [every charged particle, like a proton, produces an electric force onto every other charged particles], the other is the very short range "strong interaction" that binds the...
  15. R

    I Best fit of a function containing costants with error

    My ispiration for the problem comes from here: https://phet.colorado.edu/sims/lunar-lander/lunar-lander_en.html Considering the free falling ship, I want to find the height (or the time) at which I can turn on the full thrust and let it land at zero speed. The algebrical problem is not...
Back
Top