SUBSTV: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
No edit summary  | 
				No edit summary  | 
				||
| Line 2: | Line 2: | ||
|  | |  | ||
1=  | 1=  | ||
<code>SUBSTV ( [[expression]] | [[equation]] , [[  | <code>SUBSTV ( [[expression]] | [[equation]] , [[symbol]] = [[vector]] )</code>  | ||
|  | |  | ||
2=  | 2=  | ||
Substitute   | Substitute the given symbol in the expression/equation with all values of the vector. The result will be a vector. This is mostly useful for specifying values to [[CHART]].    | ||
|  | |  | ||
3=  | 3=  | ||
Revision as of 15:28, 2 July 2017
Syntax
SUBSTV ( expression | equation , symbol = vector )
Implemented in iMath since version 2.2.0 or earlier.
Explanation
Substitute the given symbol in the expression/equation with all values of the vector. The result will be a vector. This is mostly useful for specifying values to CHART.
Example
EXDEF SUBSTV(cos{3 %theta}, %theta=0:2 %pi/3:%pi/6) will result in the vector (1,0,-1,0,1)