File:Nearest integer.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 595 × 478 pixels, file size: 52 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

 
This diagram was created with SageMath.
Description
English: The nearest integer (round) function, which rounds to the nearest even integer. It was generated by the following Sage code:
(plot(round, -3.5, 3.5, exclude=[a - 0.5 for a in range(-3, 5)], ymax=3, zorder=3, axes_labels=['$x$', r'$\mathrm{nint}(x)$'], fontsize=14, thickness=1.5) +
point((-2.5, -2), rgbcolor='blue', pointsize=45, zorder=4) + point((-1.5, -2), rgbcolor='blue', pointsize=45, zorder=4) +
point((-0.5, 0), rgbcolor='blue', pointsize=45, zorder=4) + point((0.5, 0), rgbcolor='blue', pointsize=45, zorder=4) +
point((1.5, 2), rgbcolor='blue', pointsize=45, zorder=4) + point((2.5, 2), rgbcolor='blue', pointsize=45, zorder=4) +
point((-3.5, -3), pointsize=45, zorder=4) + point((-2.5, -3), pointsize=45, zorder=4) +
point((-1.5, -1), pointsize=45, zorder=4) + point((-0.5, -1), pointsize=45, zorder=4) +
point((0.5, 1), pointsize=45, zorder=4) + point((1.5, 1), pointsize=45, zorder=4) +
point((2.5, 3), pointsize=45, zorder=4) + point((3.5, 3), pointsize=45, zorder=4) +
point((-3.5, -3), rgbcolor='white', pointsize=20, zorder=5) +
point((-2.5, -3), rgbcolor='white', pointsize=20, zorder=5) +
point((-1.5, -1), rgbcolor='white', pointsize=20, zorder=5) +
point((-0.5, -1), rgbcolor='white', pointsize=20, zorder=5) +
point((0.5, 1), rgbcolor='white', pointsize=20, zorder=5) +
point((1.5, 1), rgbcolor='white', pointsize=20, zorder=5) +
point((2.5, 3), rgbcolor='white', pointsize=20, zorder=5) +
point((3.5, 3), rgbcolor='white', pointsize=20, zorder=5))
Date
Source Own work
Author Eviatar Bach

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current18:04, 28 May 2012Thumbnail for version as of 18:04, 28 May 2012595 × 478 (52 KB)InverseHypercube (talk | contribs)blue points
01:36, 6 January 2012Thumbnail for version as of 01:36, 6 January 2012595 × 478 (46 KB)InverseHypercube (talk | contribs)larger text
01:24, 6 January 2012Thumbnail for version as of 01:24, 6 January 2012593 × 473 (46 KB)InverseHypercube (talk | contribs)

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file: