Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.1 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Polynomials > simp

simp

rational simplification

Syntax

[N1,D1] = simp(N,D)
H1 = simp(H)

Arguments

N, D

real polynomials or real matrix polynomials

H

rational matrix (i.e matrix with entries n/d ,n and d real polynomials)

Description

[n1,d1]=simp(n,d) calculates two polynomials n1 and d1 such that n1/d1 = n/d.

If N and D are polynomial matrices the calculation is performed element-wise.

H1=simp(H) is also valid (each entry of H is simplified in H1).

  • no threshold is given, i.e. simp cannot forces a simplification.
  • For linear dynamic systems which include integrator(s) simplification changes the static gain. (H(0) for continuous systems or H(1) for discrete systems).
  • For complex data, simp returns its input(s).
  • Rational simplification is called after nearly each operations on rationals. It is possible to toggle simplification on or off using simp_mode function.

Examples

s = poly(0,'s');
[n,d] = simp((s+1)*(s+2),(s+1)*(s-2))

simp_mode(%F); hns = s/s
simp_mode(%T); hns = s/s

See also

  • simp_mode — toggle rational simplification
  • clean — cleans matrices (round to zero small entries)
  • roots — roots of a polynomial
  • trfmod — poles and zeros display
  • poly — Polynomial definition from given roots or coefficients, or characteristic to a square matrix.
Report an issue
<< sfact Polynomials simp_mode >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jan 03 14:23:25 CET 2022