- Enable your virtualenv:
This serves as a quick reference and showcase of GitHub Flavored Markdown. For more complete info, see John Gruber's original spec and the Github-flavored Markdown info page.
Sometimes a programming language has a "strict mode" to restrict unsafe constructs. E.g., Perl has use strict, Javascript has "use strict", and Visual Basic has Option Strict. But what about bash? Well, bash doesn't have a strict mode as such, but it does have an unofficial strict mode:
set -euo pipefail
set -e
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /usr/bin/python3 | |
| from math import e, sqrt | |
| # coefficients has the respective values for each n | |
| coefficients = (((0.0, 2.0), ()), # ((xi, wi)) | |
| ((1 / sqrt(3), 1), (-1 / sqrt(3), 1)), | |
| ((0, 8 / 9), (sqrt(3 / 5), 5 / 9), (-sqrt(3 / 5), 5 / 9)), | |
| ( | |
| (sqrt((3 - 2 * sqrt(6 / 5)) / 7), (18 + sqrt(30)) / 36), |