Git Product home page Git Product logo

Comments (3)

gmp26 avatar gmp26 commented on September 18, 2024

Alex, sure - I can cope with the configuration management issues myself if need be.

M

On 24 Jul 2013, at 10:08, Alex Chan wrote:

Copied here:

• Find the distance between the points ... and .... [It would be good to have a mix of positive and negative coordinates, a mix of integer coordinates and coordinates expressed as fractions and coordinates expressed as decimals and coordinates expressed as surds, if possible. Anything to get away from the inevitable Pythagorean triples.]

• Find the highest common factor of ... and .... [I'm expect them to use Euclid, so the numbers could say go up to 99999 or even 999999 if you're feeling mean. Positive integers only, please!]

• Find the centre and radius of the circle passing through the points ... and ... and .... [I think that the nice way to do this is to find the circumcentre of the triangle by finding the point of intersection of two of the perpendicular bisectors of sides of the triangle and then computing the radius afterwards.]

• Find the least common multiple of ... and .... [Probably best not to use very large numbers for this.]

• Find all integer solutions $m$ and $n$ to the equation $...m + ...n = ...$. [Let's make the first two coefficients positive, and say up to 999, and the right-hand side any integer (say between -999 and 999).]

2 and 4 should be easy (we already have helper functions for these), I’ve already had a play with 3, and 1 and 5 don’t seem too tricky either.

Mike — shall I do these when I have a spare moment?


Reply to this email directly or view it on GitHub.

Mike Pearson
+44 (0)1223 764244
+44 (0)7742 6418207
MMP, Centre for Mathematical Sciences,
Cambridge CB3 0WA

from apps1.

alexwlchan avatar alexwlchan commented on September 18, 2024

As of this evening:

  1. Implemented for integers and fractions in [-10,10] * [-10,10]. Easy to extend if we want a wider range of numbers. Commit 2d14d8b. I might play with decimals at some point.
  2. Finished in commit 4df9ab9.
  3. I started working on this in commit 111acff, but my numbers are still a little wonky.
  4. Ditto 2.
  5. Finished in commit 06b3486.

Appropriate unit tests are included.

from apps1.

alexwlchan avatar alexwlchan commented on September 18, 2024

Q3 is now working properly in 25baa9f. I might rework this later to get slightly less horrible numbers.

from apps1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.