Post Reply 
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.

[Image: attachment.php?aid=10765]

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:
  • One going from 0-10.
  • The other from 0-20.

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
set secure

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>
map <Right> :n<CR>

Start
To start the presentation open all the files:
Code:
cd slides
vim *

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
├── img
│   └── measurement-error-calculator.jpg
├── pythagoras-slide-rule.pdf
├── pythagoras-slide-rule.ps
├── readme.md
└── slides
    ├── 00-intro
    ├── 01-title
    ├── 02-language
    ├── 03-operations
    ├── 04-arithmetic-operations
    ├── 05-arithmetic-operations
    ├── 06-mathematical-functions
    ├── 07-mathematical-functions
    ├── 08-stack-operations
    ├── 09-stack-operations
    ├── 10-comparison-operations
    ├── 11-comparison-operations
    ├── 12-boolean-operations
    ├── 13-boolean-operations
    ├── 14-data
    ├── 15-number.ps
    ├── 16-string.ps
    ├── 17-array.ps
    ├── 18-dictionary.ps
    ├── 19-variables
    ├── 20-global.ps
    ├── 21-local.ps
    ├── 22-control-structures
    ├── 23-conditions
    ├── 24-conditions
    ├── 25-loops
    ├── 26-loops
    ├── 27-while-loop.ps
    ├── 28-greatest-common-divisor.ps
    ├── 29-greatest-common-divisor.rpl
    ├── 30-types
    └── 31-thank-you

2 directories, 36 files

Build Instructions
  • Print the pythagoras-slide-rule.pdf file on thick paper. I used A4 160g/m2.
  • Cut along the three horizontal solid lines. We don't need the top and bottom stripes.
  • Fold the wider strip along the dashed lines.
  • Flip the folded strip so that the scales are at the top.
  • Insert the other strip so that the scales match.

It should look somewhat like this:
[Image: attachment.php?aid=6555]

Kind regards
Thomas


Attached File(s) Thumbnail(s)
   

.pdf  pythagoras-slide-rule.pdf (Size: 6.5 KB / Downloads: 47)
.zip  allschwil-meeting-2018.zip (Size: 162.06 KB / Downloads: 26)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Allschwil Meeting 2018 - HP-Collection - 04-03-2018, 07:58 PM
RE: Allschwil Meeting 2018 - Giancarlo - 04-04-2018, 03:40 AM
RE: Allschwil Meeting 2018 - Giancarlo - 04-04-2018, 04:27 AM
RE: Allschwil Meeting 2018 - CY-CL - 04-04-2018, 05:10 AM
RE: Allschwil Meeting 2018 - Harald - 04-04-2018, 07:18 AM
RE: Allschwil Meeting 2018 - pier4r - 04-04-2018, 09:00 AM
RE: Allschwil Meeting 2018 - Hans-Peter - 04-04-2018, 07:13 PM
RE: Allschwil Meeting 2018 - HP-Collection - 04-05-2018, 04:58 AM
RE: Allschwil Meeting 2018 - elinick - 04-06-2018, 05:11 AM
RE: Allschwil Meeting 2018 - charger73 - 04-05-2018, 06:39 AM
RE: Allschwil Meeting 2018 - CY-CL - 07-01-2018, 09:25 AM
RE: Allschwil Meeting 2018 - BruceH - 07-01-2018, 11:31 AM
RE: Allschwil Meeting 2018 - Sylvain Cote - 08-01-2018, 01:51 AM
RE: Allschwil Meeting 2018 - HP-Collection - 08-02-2018, 06:46 PM
RE: Allschwil Meeting 2018 - Sylvain Cote - 08-04-2018, 11:58 PM
RE: Allschwil Meeting 2018 - HP-Collection - 09-12-2018, 10:30 PM
RE: Allschwil Meeting 2018 - pier4r - 09-13-2018, 06:42 PM
RE: Allschwil Meeting 2018 - HP-Collection - 09-25-2018, 06:10 PM
RE: Allschwil Meeting 2018 - HP-Collection - 10-01-2018, 10:48 PM
RE: Allschwil Meeting 2018 - CY-CL - 10-06-2018, 02:54 PM
RE: Allschwil Meeting 2018 - HP-Collection - 10-06-2018, 07:04 PM
RE: Allschwil Meeting 2018 - patrice - 10-13-2018, 10:06 PM
RE: Allschwil Meeting 2018 - Sylvain Cote - 10-14-2018, 03:32 AM
RE: Allschwil Meeting 2018 - patrice - 10-14-2018, 04:41 AM
RE: Allschwil Meeting 2018 - HP-Collection - 10-14-2018, 06:34 PM
RE: Allschwil Meeting 2018 - HP-Collection - 10-26-2018, 09:54 PM
RE: Allschwil Meeting 2018 - Sylvain Cote - 10-28-2018, 10:24 PM
RE: Allschwil Meeting 2018 - patrice - 10-30-2018, 09:59 PM
RE: Allschwil Meeting 2018 - KimH - 10-31-2018, 01:53 PM
RE: Allschwil Meeting 2018 - Sylvain Cote - 11-01-2018, 07:00 PM
RE: Allschwil Meeting 2018 - CY-CL - 11-01-2018, 07:53 PM
RE: Allschwil Meeting 2018 - HP-Collection - 11-01-2018, 09:55 PM
RE: Allschwil Meeting 2018 - Jurgen Keller - 11-04-2018, 02:00 PM
RE: Allschwil Meeting 2018 - rprosperi - 11-04-2018, 02:10 PM
RE: Allschwil Meeting 2018 - Giancarlo - 11-04-2018, 03:58 PM
Nice finding in a drawer or A short introduction to PostScript - Thomas Klemm - 11-05-2018 02:19 PM
RE: Allschwil Meeting 2018 - HP-Collection - 11-05-2018, 02:44 PM
RE: Allschwil Meeting 2018 - HP-Collection - 11-05-2018, 07:06 PM
RE: Allschwil Meeting 2018 - HP-Collection - 11-07-2018, 03:51 PM
RE: Allschwil Meeting 2018 - Ángel Martin - 11-08-2018, 10:18 AM
RE: Allschwil Meeting 2018 - HP-Collection - 11-08-2018, 10:46 PM
RE: Allschwil Meeting 2018 - aurelio - 11-10-2018, 06:27 PM
RE: Allschwil Meeting 2018 - burkhard - 11-10-2018, 06:09 PM
RE: Allschwil Meeting 2018 - PANAMATIK - 11-13-2018, 09:21 PM
RE: Allschwil Meeting 2018 - HP-Collection - 11-13-2018, 10:27 PM
RE: Allschwil Meeting 2018 - Jurgen Keller - 11-15-2018, 06:28 PM



User(s) browsing this thread: 1 Guest(s)