Mathcad syntax

Mathcad syntax

The Mathcad notation or Mathcad syntax is used to enter formulas and commands for Mathcad, a commercial mathematical software.

Numbers

Rounding functions

Several functions are available for rounding fractional numeric values to integral values or specifi number of fraction digits:

  • round(z,n): returns z rounded to n (optional) decimal places. If n is omitted, returns z rounded to the nearest integer (n is assumed to be zero). If n<0, returns z rounded to n places to the left of the decimal point. For example,
round(π-2πi) returns 3-6i
round(-(π-2πi)) returns -3+6i.
  • trunc(z): returns the integer part of z by removing the fractional part. For example
trunc(2.7) returns 2
trun(-2.7) returns -2
  • floor(z): returns the greatest integer ≤ z
floor(π-2πi) returns 3-7i
floor(-(π-2πi)) returns -4+6i
  • ceil(z): returns the smallest integer ≥ z
ceil(π-2πi) returns 4-6i
ceil(-(π-2πi)) returns -3+7i

Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Comparison of computer algebra systems — The following tables provide a comparison of computer algebra systems (CAS). Contents 1 General 1.1 Functionality 1.2 Operating system support 2 Hand held calculator CAS …   Wikipedia

  • MATLAB — For the region in Bangladesh, see Matlab Upazila. MATLAB MATLAB R2011a screenshot …   Wikipedia

  • Pseudocode — is a compact and informal high level description of a computer programming algorithm that uses the structural conventions of some programming language, but is intended for human reading rather than machine reading. Pseudo code typically omits… …   Wikipedia

  • List of numerical analysis software — Listed here are a number of computer programs used for performing numerical calculations: * acslX is a software application for modeling and evaluating the performance of continuous systems described by time dependent, nonlinear differential… …   Wikipedia

  • Maple (software) — Maple Maple interface Developer(s) Waterloo Maple (Maplesoft) Stable release 15.01 / June 21, 2011; 4 months ago (2011 06 21) …   Wikipedia

  • MuPAD — Developer(s) The Mathworks Inc. Stable release …   Wikipedia

  • R (язык программирования) — У этого термина существуют и другие значения, см. R. R Класс языка: функциональный Тип исполнения: интерпретируемый Появился в: 1993 …   Википедия

  • Mathematica — For other uses, see Mathematica (disambiguation). Mathematica Mathema …   Wikipedia

  • Maxima (software) — For other uses, see Maxima (disambiguation). Maxima wxMaxima screenshot …   Wikipedia

  • Axiom (computer algebra system) — Scratchpad redirects here. For scratchpad memory, see Scratchpad RAM. Axiom Developer(s) independent group of people Stable release September 2011 Operating system cross platform …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”