simonjwright / analytical-engine Goto Github PK
View Code? Open in Web Editor NEWAn Ada 2012 emulation of Charles Babbage’s Analytical Engine
License: Other
An Ada 2012 emulation of Charles Babbage’s Analytical Engine
License: Other
check_for_prime.ae
doesn’t check for even numbers; and because the first divisor it tests is 3, it finds that 10 is prime (because 5 is). It also finds 3 non-prime (because it’s divisible by 3!) which is a different problem.
As pointed out by Rainer Glaschick (section 3.5, Memory peculiarities), it would have been necessary to ensure that a column that was to be written to was zero beforehand; the operation of storing a value involved racks transferring the value on the source to the destination as the source digits were rotated back to zeros.
This means that (for example) operation 2 in the Bernouilli program would fail if written
-
L004
L001
S004
and should instead be written
-
Z004
L001
S004
Because this error would have resulted in a very difficult debugging exercise in the real machine, there should be a switch to allow detection of the problem (maybe this would have been a reason for raising the ERROR flag!)
It seems the same considerations would apply to loading a register from a number card.
Exceptions are caught during card reading, but not during execution, so that the user is left looking at a stack trace.
The Print card gets the value to print from the Egress axis of the Mill. Walker’s code gets it from the last transfer to the Mill or the result of the last operation (the remainder in the case of division).
Not clear to me what Babbage intended.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.