Sharedsupport / 2016-06-03-michael-harris.sagewsOpen in CoCalc
Authors: Harald Schilly, William A. Stein
License: GNU General Public License v3.0
Description: Examples for support purposes.
R.<x> = RR[] f = x^5 - x + 1 root = f.roots()[0][0] g = plot(f, -3,3, thickness=2) g += point([root, 0], color='red', pointsize=125, zorder=5) g += text("Here it is!", (1.6, -1), color='black', fontsize=22) g += arrow((1.1,-.7), [root+.2,-.05], color='darkgreen') show(g, ymin=-3, ymax=3, aspect_ratio=1, figsize=8, gridlines='major', fontsize=16) save(g, 'harris.pdf', ymin=-3, ymax=3, aspect_ratio=1, figsize=8, gridlines='major', fontsize=16) smc.file('harris.pdf')
harris.pdf
R.<x> = RR[] f = x^5 - x + 1 root = f.roots()[0][0] g = plot(f, -3,3, thickness=2) g += point([root, 0], color='red', pointsize=125, zorder=5) g += text("Here it is!", (1.6, -1), color='black', fontsize=22) g += arrow((1.1,-.7), [root+.2,-.05], color='darkgreen') show(g, ymin=-3, ymax=3, aspect_ratio=1, figsize=8, gridlines='major', fontsize=16) save(g, 'harris.eps', ymin=-3, ymax=3, aspect_ratio=1, figsize=8, gridlines='major', fontsize=16) smc.file('harris.eps')
harris.eps