A programming language is any set of rules that converts strings, or graphical program elements in the case of visual programming languages, to various kinds of machine code output. Programming languages are one kind of computer language, and are used in computer programming to implement algorithms.
Definitions
- Expressions: evaluated to produce a value, eg. 4 + 10
- Functional Programming: Pure functions who return the same output for the same given input each time
- Functional Reactive Programming: Pure functions who return the same
streamoutput for the same given inputstreameach time - Recursive: When a function or procedure calls itself. Used a lot in Functional Programming
- Scope: region of a program where a declared method/class/variable etc. can operate.
- Statement: denotes action to be performed, eg. x = 42
- Stream: Data in a specific order, can be thought of as a directed graph
Erlang
TODO Look at build tool Rebar 3
TODO Attempt to build PDF to text shell program
TODO Make PDF to text program use Erlang processes
C++
Look at multiple inheritance
- Read Tutorial
- Decide way forward
TODO Look at operator precedence
TODO Look at bitwise patterns on files (like chmod unix)
TODO Look at STDLib implementations of strlen() strcopy()
TODO Look at stack, heap, data and text sections of memory
Python
Here’s a python formula:
from math import radians, cos
result = r*cos(radians(angle))
return result
Result:
Table:
| airmass | zenithseeing | deliveredseeing |
|---|---|---|
| 1.2 | 0.95 | 6.384 |
| 1.4 | 1.1704854 | 9.1766055 |
| 1.2 | 1.1 | 7.392 |
| 1.3 | 1.2 | 8.736 |
Formula to generate image:
import matplotlib.pyplot as plt
x, y, z = zip(*delsee)
fig = plt.figure()
axes = fig.add_subplot(1,1,1)
axes.plot(y, z, marker='o')
fig.savefig(fname)
return fname
<>
| Sede | Max cites | H-index |
|---|---|---|
| Chile | 257.72 | 21.39 |
| Leeds | 165.77 | 19.68 |
| Sao Paolo | 71.00 | 11.50 |
| Stockholm | 134.19 | 14.33 |
| Morelia | 257.56 | 17.67 |
See also: