gmp26 / Apps1

An incubator for math ed apps based on AngularJS
http://nrich.maths.org/probabilityApps
MIT License
7 stars 2 forks source link

Laundry list of little mathmo question problems #25

Open alexwlchan opened 11 years ago

alexwlchan commented 11 years ago

I’ll be out of Cambridge for the next few days, and only making sporadic fixes. I’m making this list for personal reference, but having it here might be useful too.

List here to account for the stack of commits I’ll push over the next few days, but also for other people to contribute to. Put other small fixes or minor issues with Mathmo in this thread, and I’ll work my way through the list over the next few days.

alexwlchan commented 11 years ago

There’s a coefficient of +1y here: http://nrich.maths.org/mathmoApp/#/mathmo/Alex/C33/1007 and is should just be +1y.

Also this one is a bit off: http://nrich.maths.org/mathmoApp/#/mathmo/Alex/C33/1023

gmp26 commented 11 years ago

We need to fix the routing. None of these shared URLs are working.

M

On 11 Jul 2013, at 17:28, Alex Chan wrote:

There’s a coefficient of +1y here: http://nrich.maths.org/mathmoApp/#/mathmo/Alex/C33/1007 and is should just be +1y.

Also this one is a bit off: http://nrich.maths.org/mathmoApp/#/mathmo/Alex/C33/1023

— 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

alexwlchan commented 11 years ago
alexwlchan commented 11 years ago

Add unit tests to account for the edge cases in parallel/perpendicular line equations.

alexwlchan commented 11 years ago
alexwlchan commented 11 years ago
gmp26 commented 11 years ago

Thankyou!

M

On 15 Jul 2013, at 15:19, Alex Chan wrote:

• Matrices are fixed in 4bdafa0 • Spacing in figures of revolution is fixed in 0b317e4 • Stationary points are fixed in 866235d — 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

alexwlchan commented 11 years ago

Of the points discussed above, these remain:

In addition, I’ve found some more items:

Most of the qa files are now in LiveScript, which I’ve been doing as I integrate them into CMEP. I’ve not pushed them yet, because I still need to work out a few bugs (related to the fact that LS doesn’t have the ternary operator).

gmp26 commented 11 years ago

Spewing out nasty decimals is usually best solved by appealing to Number.toPrecision or Number.toFixed. These return strings so are safe. LS ternary operator is 'if x then a else b' rather than the usual 'x ? a : b'. Not sure why they chose to be more verbose than js there. No idea about gerwrite().

alexwlchan commented 11 years ago

I think the decimals should be fractions, so I need a peek to see why the frac object is turning into a decimal. I’m not sure if Number.toPrecision or Number.toFixed would be useful here.

Yep. I’m doing a few workarounds, and I suppose their ternary is more LiveScript-like. Hmm.

shrug It’s still in there, commented out, so we can get it out if needs be.

alexwlchan commented 11 years ago

A few more: