OriginLab Corporation - Scientific Graphing and Data Analysis Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis

vcmath2

Contents

Brief Information

Perform simple arithmetic on two complex numbers

Command Line Usage

1. vcmath2 ix1:=Col(1) ix2:=Col(2) op:=div;

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input ix1

Input

vector<complex>

<active>

Specifies the first complex number. The real and imaginary parts of the complex number can be saved in different columns or in the same column.

Input ix2

Input

vector<complex>

<unassigned>

Specifies the second complex number. The real and imaginary parts of the complex number can be saved in different columns or in the same column.

Operation op

Input

int

Add

Operations:
Option list

  • Add:Add
    Addition
  • Sub:Subtract
    Subtraction
  • Mul:Multiply
    Multiplication
  • Div:Divide
    Division
Output ox

Output

vector<complex>

<new>

Specifies the output column.

Description

Given two complex numbers:

Image:vcmath2_help_English_files_image002.gif, and Image:vcmath2_help_English_files_image004.gif.

Operations are:

Addition:

Image:vcmath2_help_English_files_image006.gif

Subtraction:

Image:vcmath2_help_English_files_image008.gif

Multiplication:

Image:vcmath2_help_English_files_image010.gif

Division:

Image:vcmath2_help_English_files_image012.gif

Related X-Functions

vcmath1