sans-serif

#FFFFFF
#DC143C
#000000
16px
Edit your font settings ↑
or click to preview one of these popular typefaces:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Non eram nescius, Brute, cum, quae summis ingeniis exquisitaque doctrina philosophi Graeco sermone tractavissent, ea Latinis litteris mandaremus, fore ut hic noster labor in varias reprehensiones incurreret. nam quibusdam, et iis quidem non admodum indoctis, totum hoc displicet philosophari. quidam autem non tam id reprehendunt, si remissius agatur, sed tantum studium tamque multam operam ponendam in eo non arbitrantur. erunt etiam, et ii quidem eruditi Graecis litteris, contemnentes Latinas, qui se dicant in Graecis legendis operam malle consumere. postremo aliquos futuros suspicor, qui me ad alias litteras vocent, genus hoc scribendi, etsi sit elegans, personae tamen et dignitatis esse negent.

Contra quos omnis dicendum breviter existimo. Quamquam philosophiae quidem vituperatoribus satis responsum est eo libro, quo a nobis philosophia defensa et collaudata est, cum esset accusata et vituperata ab Hortensio. qui liber cum et tibi probatus videretur et iis, quos ego posse iudicare arbitrarer, plura suscepi veritus ne movere hominum studia viderer, retinere non posse. Qui autem, si maxime hoc placeat, moderatius tamen id volunt fieri, difficilem quandam temperantiam postulant in eo, quod semel admissum coerceri reprimique non potest, ut propemodum iustioribus utamur illis, qui omnino avocent a philosophia, quam his, qui rebus infinitis modum constituant in reque eo meliore, quo maior sit, mediocritatem desiderent.


Typography

[Insert any text]

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.


千字文

天地玄黃,宇宙洪荒。日月盈昃,辰宿列張。寒來暑往,秋收冬藏。閏餘成歲,律召調陽。

雲騰致雨,露結為霜。金生麗水,玉出崑崗。劍號巨闕,珠稱夜光。果珍李柰,菜重芥薑。


いろは歌

いろはにほへと ちりぬるを わかよたれそ つねならむ

うゐのおくやま けふこえて あさきゆめみし ゑひもせす


Programming

(ns pi.main)

(def rounding-mode BigDecimal/ROUND_HALF_EVEN)

(defn arccot [inverse-x scale]
  (let [inv-x (bigdec inverse-x)
        inv-x2 (bigdec (* inverse-x inverse-x))]
    (loop [i 1
           numer (.divide 1M inv-x scale rounding-mode)
           result numer]
      (let [numer-n (.divide numer inv-x2 scale rounding-mode)
            denom (+ 1 (* 2 i))
            term (.divide numer-n (bigdec denom) scale rounding-mode)
            result-n (if (= 0 (rem i 2))
                       (.add result term)
                       (.subtract result term))]
        (if (= 0 (.compareTo term 0M))
          result-n
          (recur (+ 1 i) numer-n result-n))))))

(defn pi [digits]
  (let [scale (+ 5 digits)
        arccot5 (arccot 5 scale)
        arccot239 (arccot 239 scale)
        pi (.multiply (bigdec 4)
                      (.subtract (.multiply (bigdec 4) arccot5)
                                 arccot239))]
    (.setScale pi digits BigDecimal/ROUND_HALF_UP)))

(defn -main
            "Calculates Pi using Machin's Formula."
  ([]
     (println "Usage: lein run <num-of-digits>"))
  ([&args]
     (printf "%s\n"
             (pi (Integer. (first *command-line-args*))))))