Allschwil Meeting 2018
|
11-05-2018, 02:19 PM
(This post was last modified: 06-07-2022 06:45 PM by Thomas Klemm.)
Post: #51
|
|||
|
|||
Nice finding in a drawer or A short introduction to PostScript
Allschwil Meeting 2018
Introduction Found this picture in the thread: Nice finding in a drawer. On 11.10.2015, 01:08 TASP wrote: Quote:I assume we will have 3D printed reproductions available in a few days. Goal 2D print a slide-rule for the Pythagorean theorem. How does it work? The scale maps a number x to x². Thus we can easily add c² = a² + b². Then we can map the result back to c. Or then we can calculate the other cathetus b² = c² - a² given the hypotenuse and one cathetus. Scales There are two scales:
With the upper scale we can calculate: 3² + 4² = 5² With the lower scale we can calculate: 5² + 12² = 13² Obviously it's not possible to use this slide rule for all possible combinations. Quote:For greatest accuracy, use upper scale if possible. PostScript Documentation
GhostScript Environment Use ghostscript as a REPL to interactively create the program. Show the PostScript File Code: gs pythagoras-slide-rule.ps Create a PDF Code: ps2pdf pythagoras-slide-rule.ps pythagoras-slide-rule.pdf Slides Preparation To view the slides using vim you need the following settings in your ~/.vimrc file: Code: set exrc This allows to load the local .vimrc file that maps the left and right arrow keys to :N and :n: Code: map <Left> :N<CR> Start To start the presentation open all the files: Code: cd slides Intro Use the first page to scale your terminal. Navigation Use the left and right arrow keys to navigate backwards and forwards. Exit To exit the presentation press: Code: :q! Attachment This is the content of the allschwil-meeting-2018.zip file: Code: allschwil-meeting-2018 Build Instructions
It should look somewhat like this: Kind regards Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)