Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.1.0 - Português


polyDisplay

set or get the display mode of polynomials

Syntax

mod = polyDisplay()
polyDisplay(mod)
previousMod = polyDisplay(mod)

Arguments

mod

a string, "ascii" or "unicode"

previousMod

a string, the previous mode before being changed

Description

The exponents of monomials can be displayed with pure ascii characters or by using unicode superscripts.

polyDisplay("ascii") sets the display mode to ASCII (the default), giving a display of exponents using a caret/circumflex "^" followed by the actual exponent.

polyDisplay("unicode") sets the display mode to Unicode, giving a display of exponents using a combination of Unicode superscripts "¹²³⁴⁵⁶⁷⁸⁹¹⁰".

previousMod = polyDisplay(mod) yields the previous mode before being changed.

Without input argument, mod = polyDisplay() yields the current display mode.

Example

polyDisplay
polyDisplay ascii
(1+%s)^4
polyDisplay unicode
(1+%s)^4
(1+%s)^3/(1-%s)^3
        --> polyDisplay 
         ans  =

          "ascii"

        --> polyDisplay ascii

        --> (1+%s)^4
         ans  =

          1 +4s +6s^2 +4s^3 +s^4

        --> polyDisplay unicode

        --> (1+%s)^4
         ans  =

          1 +4s +6s² +4s³ +s⁴
Report an issue
<< poly Polinômios polyint >>

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 May 22 12:42:13 CEST 2023