{
std::wstring wstrName = pVar->getSymbol().getName();
std::wostringstream ostr;
- ostr << wstrName << L" = " << std::endl << std::endl;
+ ostr << L" " << wstrName << L" = " << std::endl << std::endl;
scilabWriteW(ostr.str().c_str());
std::wostringstream ostrName;
ostrName << wstrName;
if (e.isVerbose() && ConfigVariable::isPromptShow())
{
std::wostringstream ostr;
- ostr << *getStructNameFromExp(pCell) << L" = " << std::endl;
+ ostr << L" " << *getStructNameFromExp(pCell) << L" = " << std::endl;
ostr << std::endl;
scilabWriteW(ostr.str().c_str());
if (e.isVerbose() && ConfigVariable::isPromptShow())
{
std::wostringstream ostr;
- ostr << *getStructNameFromExp(&pCall->getName()) << L" = " << std::endl;
+ ostr << L" " << *getStructNameFromExp(&pCall->getName()) << L" = " << std::endl;
ostr << std::endl;
scilabWriteW(ostr.str().c_str());
types::InternalType* pPrint = ctx->get(symbol::Symbol(*pstName));
std::wostringstream ostr;
- ostr << *pstName << L" = " << std::endl << std::endl;
+ ostr << L" " << *pstName << L" = " << std::endl << std::endl;
scilabWriteW(ostr.str().c_str());
std::wostringstream ostrName;
_piDims[1] = 0;
_piDims[0] = i;
int iPos = getIndex(_piDims);
- ostr << (get(iPos) ? L" T" : L" F");
+ ostr << (get(iPos) ? L" T" : L" F");
ostr << std::endl;
}
}
{
ostr << std::endl << L" column " << iLastCol + 1 << L" to " << getCols() << std::endl << std::endl;
}
- ostr << ostemp.str();
+ ostr << L" " << ostemp.str();
}
return true;
format("v",10)
//display of numbers
x=2.6533333
-x =
+ x =
2.6533333
x=[2.6533333 -0.0002]
-x =
+ x =
2.6533333 - 0.0002
x'
ans =
2.6533333
- 0.0002
x=[]
-x =
+ x =
[]
//display of polynomials
z=poly(0,"z")
-z =
+ z =
z
num=[ (((((1)*z-2.6533333)*z+2.6887936)*z-1.2916784)*z+0.2911572)* ...
z-0.0243497
(((1)*z )*z )*z+1
0]
-num =
+ num =
2 3 4
- 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z
5
((((1)*z-1.536926)*z+0.8067352)*z-0.1682810)*z+0.0113508
((1)*z )*z
1]
-den =
+ den =
2 3 4
0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z
2 3 4
1
//display of polynomials
z=poly(0,"z")
-z =
+ z =
z
n=1+z;d=n*n;n1=[n d];d1=[d d*d];n1=[n1 n1];d1=[d1 d1];
d3=[1+z**10 z**15];
//display of rationals
r=num./den
-r =
+ r =
1 1
-- --
1 + 4z + 6z + 4z + z
//display of strings
digits="abcdefghijklmnopqrstuvwxyz"
-digits =
+ digits =
abcdefghijklmnopqrstuvwxyz
numbers="1234567890"
-numbers =
+ numbers =
1234567890
majuscules="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
-majuscules =
+ majuscules =
ABCDEFGHIJKLMNOPQRSTUVWXYZ
symbols=",./;''[] \ =-!\$%^&*()_+~:""[]| @"
-symbols =
+ symbols =
,./;'[] \ =-!\$%^&*()_+~:"[]| @
[numbers;digits]
ans =
list(list(1,list()),2)
ans =
ans(1)
- ans(1)(1)
+ ans(1)(1)
1.
- ans(1)(2)
+ ans(1)(2)
()
ans(2)
2.
list(list(1:$))
ans =
ans(1)
- ans(1)(1)
+ ans(1)(1)
1:1:$
list(list(1,$),list())
ans =
ans(1)
- ans(1)(1)
+ ans(1)(1)
1.
- ans(1)(2)
+ ans(1)(2)
$
ans(2)
()
// Tlist overloaded display
TL=tlist("x",1,2)
-TL =
+ TL =
TL(1)
x
TL(2)
list(list(TL))
ans =
ans(1)
- ans(1)(1)
+ ans(1)(1)
Mydisplay
1.
2.
TL=tlist("x",1:$,2)
-TL =
+ TL =
Mydisplay
1:1:$
2.
list(list(TL))
ans =
ans(1)
- ans(1)(1)
+ ans(1)(1)
Mydisplay
1:1:$
2.
TL(2)=TL
-TL =
+ TL =
Mydisplay
Mydisplay
1:1:$
2.
2.
+// boolean
+%t
+ ans =
+ T
+%f
+ ans =
+ F
+b=[%t %t %t]
+ b =
+ T T T
+~b
+ ans =
+ F F F
+bp=b'
+ bp =
+ T
+ T
+ T
+~bp
+ ans =
+ F
+ F
+ F
+bb=[b; b; b]
+ bb =
+ T T T
+ T T T
+ T T T
+
+~bb
+ ans =
+ F F F
+ F F F
+ F F F
+