comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Drummond <brian@shapes.demon.co.uk>
Subject: Re: what to do, for the mathematically-disabled people (only half-joking)
Date: Fri, 8 Jan 2021 16:05:03 -0000 (UTC)	[thread overview]
Message-ID: <rt9vrf$aia$1@dont-email.me> (raw)
In-Reply-To: d3bee653-7a11-4b46-8e59-77adc272b1ecn@googlegroups.com

On Thu, 07 Jan 2021 13:46:06 -0800, Mehdi Saada wrote:

> What would you advise, for a mathematically impaired person such as
> myself, who gets a headache trying to implement a simple vector fusion
> algorithm ?
> And however I try, a few days, changes nothing to the outcome, shit
> doesn't get done, and I'm left furious at myself. And I know it well, at
> my age, when I, am the problem.
> Are those algorithm books useful, can they really hammer the logic
> muscles in my brain ?
> Basically, I cannot see in my head the (simple, I stress that out)
> program playing out.
> 
> Thanks,
> Mehdi

Sometimes, I find mocking it up in a spreadsheet helps!

Sounds dumb, but...

Say, I can think of a testcase and I know what the output should look 
like, start with a column of figures and more columns of (transformed by 
equation) figures, and ideally a column computing an error function.

Why is the error column 0 here, but not there? ... aaah...

For example I've designed pipelined versions of algorithms that way, 
before implementing in FPGA, and LUT-based quadratic interpolators to 
approximate reciprocal and square root, to get within 1 LSB error at 
single precision (multiplication/addition are cheap in FPGA, division/
sqrt not so much)

Also mocked up James Watt's link motion, a 5th order approximation to 
straight line using only rotary motion.

YMMV.

-- Brian

  parent reply	other threads:[~2021-01-08 16:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-07 21:46 what to do, for the mathematically-disabled people (only half-joking) Mehdi Saada
2021-01-08 14:50 ` Mehdi Saada
2021-01-08 16:05 ` Brian Drummond [this message]
2021-01-08 17:43 ` Paul Rubin
2021-01-08 23:24   ` Mehdi Saada
2021-01-12  0:14     ` Shark8
2021-01-29  2:22       ` Mehdi Saada
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox