Recent content by pbuk

  1. P

    B Graphing trip efficiency - distance over time

    No it's OK, I see what you are doing now, and where the error is that was confusing me. The last point you plotted was 36 km/h at 40 minutes, 57 km and you then drew a straight line to 0 km/h at 45 minutes, implying that the average speed for the remaining trip decreased from 36 km/h to zero...
  2. P

    B Graphing trip efficiency - distance over time

    Either you are not explaining yourself well or you are making mistakes in your calculations - or, and I believe this is the case, both. For instance both from your description and from the blue line in #5 it is clear that the last kilometre of the journey takes about 8 minutes, an average speed...
  3. P

    B Graphing trip efficiency - distance over time

    According to you, t + 60: I haven't checked this.
  4. P

    B Graphing trip efficiency - distance over time

    What you seem to have plotted on the grey line is for any time ## t ## the average speed required to reach the destination in ## t + 60 ## minutes. Is this something you are interested in?
  5. P

    Python Test set for IVP solvers

    A related point which I think is worth mentioning is that any integration routine implemented in Python code will be orders of magnitude slower than the routines implemented in scipy.integrate.solve-ivp (some of which link libraries written in Fortran).
  6. P

    Python Test set for IVP solvers

    I have had a quick look at some of these and I think there is room for improvement if you want to offer this up as suitable for testing and comparing ODE solvers. For example [code lang=Python title=pleaides.py] def f(t, u): [pos, vel] = np.hsplit(u, 2) xx = pos[:,0:1] yy =...
  7. P

    Comp Sci IEEE-754 Precision Format

    @BvU you are confusing rounding epsilon with interval epsilon. @arhzz given that 2 is twice the size of 1 it should be obvious that they could not both have the same value of epsilon.
  8. P

    Comp Sci IEEE-754 Precision Format

    Why? If the OP is studying in Europe then answers with full stops as the fractional separator would be wrong. You do need to insert braces around the comma though to avoid inserting unwanted white space, and also use \times instead of * for multiplication, so instead of 1,19 * 10^{-7} rendered...
  9. P

    Python Question about learning programming

    No. You have tagged this post "Python"; this already implements standard algorithms and data structures (as do other high level languages) so you don't need to know how to write them. Programming does not involve any "deeper logic", what it consists of is breaking down a problem into smaller...
  10. P

    Two cyclists ride between a pair of towns with and against the wind

    I don't know how you solved it but I wouldn't describe it as "manual and painstaking": Your diagram and workings in the OP for the first meeting are correct. You can then see that it takes C1 ## \frac{2}{32} = \frac{1}{16} ## hour to get to A and C2 ## \frac{8}{8} = 1 ## hour to get to B. Your...
  11. P

    Two cyclists ride between a pair of towns with and against the wind

    No it isn't. "One of the towns" uniquely identifies one of the towns, without loss of generality let this be B. The phrase is then "first at 2 km and then 6 km away from B". If the question setter had intended to express the meaning that you want the phrase would have been written "first at 2...
  12. P

    Bug Cloudflare blocked me when I clicked on a link

    Edit your post to remove them then. Also remove the table and the embedded spacer images.
  13. P

    How to analyse a sequence of vehicle states?

    This statement seems to contradict itself Don't use a regular expression. Implement a parser in an object-oriented language using the state pattern.
  14. P

    Formula for the average EMF of generator

    Because we are interested in the magnitude of the EMF.
  15. P

    Python Most efficient way to randomly choose a word from a file with a list of words

    This is a web bot: the whole file is read into memory once and then stays there for hours/days/weeks, easily serving multiple requests per second if necessary, even with a basic shared hosting service (providing that does not breach the terms of the web host of course: some explicitly forbid...
Back
Top