Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.2 - 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 >> Scilab > Scilab keywords > star

star

(*) multiplication operator

Description

Multiplication. Usual meaning. Valid for constant, boolean, polynomial, rational matrices and for syslin lists (the meaning is series connection).

Element-wise multiplication is denoted x.*y. If x or y is scalar (1x1 matrix) .* is the same as *.

Kronecker product is x.*.y.

A*.B is an operator with no predefined meaning. It may be used to define a new operator (see overloading) with the same precedence as * or /.

Remark that /* start to comment a block of code and */ end to comment this block.

Examples

// Basic numerical operations
2 * 2 // 4
2 * [%pi, %eps] // 6.2831853    4.441D-16
rand(2,2) * rand(2)
[1, 2; 3, 4] * [%pi,%eps; %e, %pi]
// Polynomial operations
s=poly(0,"s");
p=1+s+2*s^2;
q=1+s+2*s^3;
p * q
//               2    3    4    5
//    1 + 2s + 3s + 4s + 2s + 4s
// Rational
s=poly(0,'s');
W=[1/s,1/(s+1)];
W' * W
//    1           1
//    -         -----
//     2             2
//    s         s + s
//
//      1           1
//    -----     ---------
//         2              2
//    s + s     1 + 2s + s

See also

  • dot — (.) symbol
  • slash — (/) right division and feed back
  • backslash — (\) left matrix division.
  • syslin — linear system definition
  • overloading — display, functions and operators overloading capabilities
  • comments — (// or /*...*/) comments
Report an issue
<< slash Scilab keywords symbols >>

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:
Thu Feb 14 14:57:05 CET 2019