Home » Archimedes archive » Acorn User » AU 1997-01 B.adf » Regulars » StarInfo/Allen/!Ignotum/Formulae/Formulae/Loga

StarInfo/Allen/!Ignotum/Formulae/Formulae/Loga

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1997-01 B.adf » Regulars
Filename: StarInfo/Allen/!Ignotum/Formulae/Formulae/Loga
Read OK:
File size: 0398 bytes
Load address: 0000
Exec address: 0000
File contents
# Maths > Logarithms

# New entries should take the form of:
#     Formula
#     Note 1
#     Note 2
#     Note 3
#     Note 4
#     Note 5
#     Formula
#     Note 1
#     And so on...
# To fit snugly into the window, each line should be no longer
# than 42 characters.
# There is a limit of 25 formulas per topic.

# Any notes should be made here, at the beginning and should
# be preceeded by a hash (#).

If log<a>b=c then b=a^c
The most basic rule of logarithms, where
b & c are numbers and <a> is the base. The
base is usually 10 or the constant e 
(2.718). Log<e>x is written as lnx.
Log<10>x is usually just written as logx.
log(a^b)=bloga





log(ab)=loga+logb
 




log(a/b)=loga-logb





log<b>a=log<c>a/log<c>b
This is the easiest way to change the
logarithm base.



log<a>b=1/log<b>a
























































































































00000000  23 20 4d 61 74 68 73 20  3e 20 4c 6f 67 61 72 69  |# Maths > Logari|
00000010  74 68 6d 73 0a 0a 23 20  4e 65 77 20 65 6e 74 72  |thms..# New entr|
00000020  69 65 73 20 73 68 6f 75  6c 64 20 74 61 6b 65 20  |ies should take |
00000030  74 68 65 20 66 6f 72 6d  20 6f 66 3a 0a 23 20 20  |the form of:.#  |
00000040  20 20 20 46 6f 72 6d 75  6c 61 0a 23 20 20 20 20  |   Formula.#    |
00000050  20 4e 6f 74 65 20 31 0a  23 20 20 20 20 20 4e 6f  | Note 1.#     No|
00000060  74 65 20 32 0a 23 20 20  20 20 20 4e 6f 74 65 20  |te 2.#     Note |
00000070  33 0a 23 20 20 20 20 20  4e 6f 74 65 20 34 0a 23  |3.#     Note 4.#|
00000080  20 20 20 20 20 4e 6f 74  65 20 35 0a 23 20 20 20  |     Note 5.#   |
00000090  20 20 46 6f 72 6d 75 6c  61 0a 23 20 20 20 20 20  |  Formula.#     |
000000a0  4e 6f 74 65 20 31 0a 23  20 20 20 20 20 41 6e 64  |Note 1.#     And|
000000b0  20 73 6f 20 6f 6e 2e 2e  2e 0a 23 20 54 6f 20 66  | so on....# To f|
000000c0  69 74 20 73 6e 75 67 6c  79 20 69 6e 74 6f 20 74  |it snugly into t|
000000d0  68 65 20 77 69 6e 64 6f  77 2c 20 65 61 63 68 20  |he window, each |
000000e0  6c 69 6e 65 20 73 68 6f  75 6c 64 20 62 65 20 6e  |line should be n|
000000f0  6f 20 6c 6f 6e 67 65 72  0a 23 20 74 68 61 6e 20  |o longer.# than |
00000100  34 32 20 63 68 61 72 61  63 74 65 72 73 2e 0a 23  |42 characters..#|
00000110  20 54 68 65 72 65 20 69  73 20 61 20 6c 69 6d 69  | There is a limi|
00000120  74 20 6f 66 20 32 35 20  66 6f 72 6d 75 6c 61 73  |t of 25 formulas|
00000130  20 70 65 72 20 74 6f 70  69 63 2e 0a 0a 23 20 41  | per topic...# A|
00000140  6e 79 20 6e 6f 74 65 73  20 73 68 6f 75 6c 64 20  |ny notes should |
00000150  62 65 20 6d 61 64 65 20  68 65 72 65 2c 20 61 74  |be made here, at|
00000160  20 74 68 65 20 62 65 67  69 6e 6e 69 6e 67 20 61  | the beginning a|
00000170  6e 64 20 73 68 6f 75 6c  64 0a 23 20 62 65 20 70  |nd should.# be p|
00000180  72 65 63 65 65 64 65 64  20 62 79 20 61 20 68 61  |receeded by a ha|
00000190  73 68 20 28 23 29 2e 0a  0a 49 66 20 6c 6f 67 3c  |sh (#)...If log<|
000001a0  61 3e 62 3d 63 20 74 68  65 6e 20 62 3d 61 5e 63  |a>b=c then b=a^c|
000001b0  0a 54 68 65 20 6d 6f 73  74 20 62 61 73 69 63 20  |.The most basic |
000001c0  72 75 6c 65 20 6f 66 20  6c 6f 67 61 72 69 74 68  |rule of logarith|
000001d0  6d 73 2c 20 77 68 65 72  65 0a 62 20 26 20 63 20  |ms, where.b & c |
000001e0  61 72 65 20 6e 75 6d 62  65 72 73 20 61 6e 64 20  |are numbers and |
000001f0  3c 61 3e 20 69 73 20 74  68 65 20 62 61 73 65 2e  |<a> is the base.|
00000200  20 54 68 65 0a 62 61 73  65 20 69 73 20 75 73 75  | The.base is usu|
00000210  61 6c 6c 79 20 31 30 20  6f 72 20 74 68 65 20 63  |ally 10 or the c|
00000220  6f 6e 73 74 61 6e 74 20  65 20 0a 28 32 2e 37 31  |onstant e .(2.71|
00000230  38 29 2e 20 4c 6f 67 3c  65 3e 78 20 69 73 20 77  |8). Log<e>x is w|
00000240  72 69 74 74 65 6e 20 61  73 20 6c 6e 78 2e 0a 4c  |ritten as lnx..L|
00000250  6f 67 3c 31 30 3e 78 20  69 73 20 75 73 75 61 6c  |og<10>x is usual|
00000260  6c 79 20 6a 75 73 74 20  77 72 69 74 74 65 6e 20  |ly just written |
00000270  61 73 20 6c 6f 67 78 2e  0a 6c 6f 67 28 61 5e 62  |as logx..log(a^b|
00000280  29 3d 62 6c 6f 67 61 0a  0a 0a 0a 0a 0a 6c 6f 67  |)=bloga......log|
00000290  28 61 62 29 3d 6c 6f 67  61 2b 6c 6f 67 62 0a 20  |(ab)=loga+logb. |
000002a0  0a 0a 0a 0a 0a 6c 6f 67  28 61 2f 62 29 3d 6c 6f  |.....log(a/b)=lo|
000002b0  67 61 2d 6c 6f 67 62 0a  0a 0a 0a 0a 0a 6c 6f 67  |ga-logb......log|
000002c0  3c 62 3e 61 3d 6c 6f 67  3c 63 3e 61 2f 6c 6f 67  |<b>a=log<c>a/log|
000002d0  3c 63 3e 62 0a 54 68 69  73 20 69 73 20 74 68 65  |<c>b.This is the|
000002e0  20 65 61 73 69 65 73 74  20 77 61 79 20 74 6f 20  | easiest way to |
000002f0  63 68 61 6e 67 65 20 74  68 65 0a 6c 6f 67 61 72  |change the.logar|
00000300  69 74 68 6d 20 62 61 73  65 2e 0a 0a 0a 0a 6c 6f  |ithm base.....lo|
00000310  67 3c 61 3e 62 3d 31 2f  6c 6f 67 3c 62 3e 61 0a  |g<a>b=1/log<b>a.|
00000320  0a 0a 0a 0a 0a 0a 0a 0a  0a 0a 0a 0a 0a 0a 0a 0a  |................|
*
00000390  0a 0a 0a 0a 0a 0a 0a 0a                           |........|
00000398