File:Nearest integer.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

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

Summary

 
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

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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

5 January 2012

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)InverseHypercubeblue points
01:36, 6 January 2012Thumbnail for version as of 01:36, 6 January 2012595 × 478 (46 KB)InverseHypercubelarger text
01:24, 6 January 2012Thumbnail for version as of 01:24, 6 January 2012593 × 473 (46 KB)InverseHypercube
No pages on the English Wikipedia use this file (pages on other projects are not listed).

Global file usage

The following other wikis use this file: