}
-void MathArrayInset::maplize(MapleStream & os) const
+void MathArrayInset::maple(MapleStream & os) const
{
os << "array(";
- MathGridInset::maplize(os);
+ MathGridInset::maple(os);
os << ')';
}
///
void normalize(NormalStream &) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
private:
///
}
-void MathBraceInset::maplize(MapleStream & os) const
+void MathBraceInset::maple(MapleStream & os) const
{
os << cell(0);
}
-void MathBraceInset::octavize(OctaveStream & os) const
+void MathBraceInset::octave(OctaveStream & os) const
{
os << cell(0);
}
}
-void MathBraceInset::mathematicize(MathematicaStream & os) const
+void MathBraceInset::mathematica(MathematicaStream & os) const
{
os << cell(0);
}
/// write normalized content
void normalize(NormalStream & ns) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
///
- void mathematicize(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const;
///
- void octavize(OctaveStream &) const;
+ void octave(OctaveStream &) const;
///
void mathmlize(MathMLStream &) const;
///
}
-void MathCasesInset::maplize(MapleStream & os) const
+void MathCasesInset::maple(MapleStream & os) const
{
os << "cases(";
- MathGridInset::maplize(os);
+ MathGridInset::maple(os);
os << ')';
}
///
void normalize(NormalStream &) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
///
void write(WriteStream & os) const;
};
}
-void MathCharInset::octavize(OctaveStream & os) const
+void MathCharInset::octave(OctaveStream & os) const
{
os << char_;
}
///
void normalize(NormalStream & ns) const;
///
- void octavize(OctaveStream & os) const;
+ void octave(OctaveStream & os) const;
/// identifies Charinsets
MathCharInset const * asCharInset() const { return this; }
///
}
-void MathCommentInset::maplize(MapleStream & os) const
+void MathCommentInset::maple(MapleStream & os) const
{
os << '#' << cell(0) << "\n";
}
-void MathCommentInset::mathematicize(MathematicaStream &) const
+void MathCommentInset::mathematica(MathematicaStream &) const
{}
-void MathCommentInset::octavize(OctaveStream &) const
+void MathCommentInset::octave(OctaveStream &) const
{}
///
void write(WriteStream & os) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
///
- void mathematicize(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const;
///
- void octavize(OctaveStream &) const;
+ void octave(OctaveStream &) const;
///
void mathmlize(MathMLStream &) const;
///
}
-void MathDelimInset::maplize(MapleStream & os) const
+void MathDelimInset::maple(MapleStream & os) const
{
if (isAbs()) {
if (cell(0).size() == 1 && cell(0).front()->asMatrixInset())
os << left_ << cell(0) << right_;
}
-void MathDelimInset::maximize(MaximaStream & os) const
+void MathDelimInset::maxima(MaximaStream & os) const
{
if (isAbs()) {
if (cell(0).size() == 1 && cell(0).front()->asMatrixInset())
}
-void MathDelimInset::mathematicize(MathematicaStream & os) const
+void MathDelimInset::mathematica(MathematicaStream & os) const
{
if (isAbs()) {
if (cell(0).size() == 1 && cell(0).front()->asMatrixInset())
}
-void MathDelimInset::octavize(OctaveStream & os) const
+void MathDelimInset::octave(OctaveStream & os) const
{
if (isAbs())
os << "det(" << cell(0) << ')';
/// write normalized content
void normalize(NormalStream &) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
///
- void maximize(MaximaStream &) const;
+ void maxima(MaximaStream &) const;
///
- void mathematicize(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const;
///
void mathmlize(MathMLStream &) const;
///
- void octavize(OctaveStream &) const;
+ void octave(OctaveStream &) const;
///
string left_;
///
}
-void MathDiffInset::maplize(MapleStream & os) const
+void MathDiffInset::maple(MapleStream & os) const
{
os << "diff(";
for (idx_type idx = 0; idx < nargs(); ++idx) {
}
-void MathDiffInset::mathematicize(MathematicaStream & os) const
+void MathDiffInset::mathematica(MathematicaStream & os) const
{
os << "Dt[";
for (idx_type idx = 0; idx < nargs(); ++idx) {
///
void normalize(NormalStream &) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
///
- void mathematicize(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const;
///
void mathmlize(MathMLStream &) const;
///
}
-void MathExFuncInset::maplize(MapleStream & os) const
+void MathExFuncInset::maple(MapleStream & os) const
{
if (name_ == "det")
os << "linalg[det](" << cell(0) << ')';
}
-void MathExFuncInset::maximize(MaximaStream & os) const
+void MathExFuncInset::maxima(MaximaStream & os) const
{
if (name_ == "det")
os << "determinant(" << cell(0) << ')';
}
-void MathExFuncInset::mathematicize(MathematicaStream & os) const
+void MathExFuncInset::mathematica(MathematicaStream & os) const
{
os << asMathematicaName(name_) << '[' << cell(0) << ']';
}
}
-void MathExFuncInset::octavize(OctaveStream & os) const
+void MathExFuncInset::octave(OctaveStream & os) const
{
os << name_ << '(' << cell(0) << ')';
}
string name() const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
///
- void maximize(MaximaStream &) const;
+ void maxima(MaximaStream &) const;
///
- void mathematicize(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const;
///
void mathmlize(MathMLStream &) const;
///
- void octavize(OctaveStream &) const;
+ void octave(OctaveStream &) const;
private:
///
}
-void MathExIntInset::maplize(MapleStream & os) const
+void MathExIntInset::maple(MapleStream & os) const
{
os << symbol_ << '(';
if (cell(0).size())
}
-void MathExIntInset::maximize(MaximaStream & os) const
+void MathExIntInset::maxima(MaximaStream & os) const
{
if ( symbol_ == "int" )
os << "integrate(";
os << cell(1) << ')';
}
-void MathExIntInset::mathematicize(MathematicaStream & os) const
+void MathExIntInset::mathematica(MathematicaStream & os) const
{
if ( symbol_ == "int" )
os << "Integrate[";
///
void normalize(NormalStream &) const;
///
- void maximize(MaximaStream &) const;
+ void maxima(MaximaStream &) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
///
- void mathematicize(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const;
///
void mathmlize(MathMLStream &) const;
///
}
-void octavize(MathArray const & dat, OctaveStream & os)
+void octave(MathArray const & dat, OctaveStream & os)
{
MathArray ar = dat;
extractStructure(ar);
for (MathArray::const_iterator it = ar.begin(); it != ar.end(); ++it)
- (*it)->octavize(os);
+ (*it)->octave(os);
}
-void maplize(MathArray const & dat, MapleStream & os)
+void maple(MathArray const & dat, MapleStream & os)
{
MathArray ar = dat;
extractStructure(ar);
for (MathArray::const_iterator it = ar.begin(); it != ar.end(); ++it)
- (*it)->maplize(os);
+ (*it)->maple(os);
}
-void maximize(MathArray const & dat, MaximaStream & os)
+void maxima(MathArray const & dat, MaximaStream & os)
{
MathArray ar = dat;
extractStructure(ar);
for (MathArray::const_iterator it = ar.begin(); it != ar.end(); ++it)
- (*it)->maximize(os);
+ (*it)->maxima(os);
}
-void mathematicize(MathArray const & dat, MathematicaStream & os)
+void mathematica(MathArray const & dat, MathematicaStream & os)
{
MathArray ar = dat;
extractStructure(ar);
for (MathArray::const_iterator it = ar.begin(); it != ar.end(); ++it)
- (*it)->mathematicize(os);
+ (*it)->mathematica(os);
}
void write(MathArray const &, WriteStream &);
void normalize(MathArray const &, NormalStream &);
-void maplize(MathArray const &, MapleStream &);
-void maximize(MathArray const &, MaximaStream &);
-void mathematicize(MathArray const &, MathematicaStream &);
+void maple(MathArray const &, MapleStream &);
+void maxima(MathArray const &, MaximaStream &);
+void mathematica(MathArray const &, MathematicaStream &);
void mathmlize(MathArray const &, MathMLStream &);
-void octavize(MathArray const &, OctaveStream &);
+void octave(MathArray const &, OctaveStream &);
bool extractNumber(MathArray const & ar, int & i);
bool extractNumber(MathArray const & ar, double & i);
}
-void MathFracInset::maplize(MapleStream & os) const
+void MathFracInset::maple(MapleStream & os) const
{
os << '(' << cell(0) << ")/(" << cell(1) << ')';
}
-void MathFracInset::mathematicize(MathematicaStream & os) const
+void MathFracInset::mathematica(MathematicaStream & os) const
{
os << '(' << cell(0) << ")/(" << cell(1) << ')';
}
-void MathFracInset::octavize(OctaveStream & os) const
+void MathFracInset::octave(OctaveStream & os) const
{
os << '(' << cell(0) << ")/(" << cell(1) << ')';
}
///
void write(WriteStream & os) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
///
- void mathematicize(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const;
///
- void octavize(OctaveStream &) const;
+ void octave(OctaveStream &) const;
///
void mathmlize(MathMLStream &) const;
public:
///
void normalize(NormalStream &) const;
///
- //void maplize(MapleStream &) const;
+ //void maple(MapleStream &) const;
///
void mathmlize(MathMLStream &) const;
///
- //void octavize(OctaveStream &) const;
+ //void octave(OctaveStream &) const;
protected:
/// returns x offset of cell compared to inset
}
-void MathInset::octavize(OctaveStream & os) const
+void MathInset::octave(OctaveStream & os) const
{
NormalStream ns(os.os());
normalize(ns);
}
-void MathInset::maplize(MapleStream & os) const
+void MathInset::maple(MapleStream & os) const
{
NormalStream ns(os.os());
normalize(ns);
}
-void MathInset::maximize(MaximaStream & os) const
+void MathInset::maxima(MaximaStream & os) const
{
MapleStream ns(os.os());
- maplize(ns);
+ maple(ns);
}
-void MathInset::mathematicize(MathematicaStream & os) const
+void MathInset::mathematica(MathematicaStream & os) const
{
NormalStream ns(os.os());
normalize(ns);
/// write normalized content
virtual void normalize(NormalStream &) const;
/// write content as something readable by Maple
- virtual void maplize(MapleStream &) const;
+ virtual void maple(MapleStream &) const;
/// write content as something readable by Maxima
- virtual void maximize(MaximaStream &) const;
+ virtual void maxima(MaximaStream &) const;
/// write content as something readable by Mathematica
- virtual void mathematicize(MathematicaStream &) const;
+ virtual void mathematica(MathematicaStream &) const;
/// write content as something resembling MathML
virtual void mathmlize(MathMLStream &) const;
/// write content as something readable by Octave
- virtual void octavize(OctaveStream &) const;
+ virtual void octave(OctaveStream &) const;
/// describe content if cursor inside
virtual void infoize(std::ostream &) const {}
/// describe content if cursor behind
}
-void MathLimInset::maplize(MapleStream & os) const
+void MathLimInset::maple(MapleStream & os) const
{
os << "limit(" << cell(0) << ',' << cell(1) << '=' << cell(2) << ')';
}
-void MathLimInset::mathematicize(MathematicaStream & os) const
+void MathLimInset::mathematica(MathematicaStream & os) const
{
os << "Lim[" << cell(0) << ',' << cell(1) << ',' << cell(2) << ']';
}
///
void normalize(NormalStream &) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
///
- void mathematicize(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const;
///
void mathmlize(MathMLStream &) const;
///
}
-void MathMacro::maplize(MapleStream & os) const
+void MathMacro::maple(MapleStream & os) const
{
updateExpansion();
- ::maplize(expanded_, os);
+ ::maple(expanded_, os);
}
}
-void MathMacro::octavize(OctaveStream & os) const
+void MathMacro::octave(OctaveStream & os) const
{
updateExpansion();
- ::octavize(expanded_, os);
+ ::octave(expanded_, os);
}
bool match(MathAtom const &) const { return false; }
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
///
void mathmlize(MathMLStream &) const;
///
- void octavize(OctaveStream &) const;
+ void octave(OctaveStream &) const;
///
void infoize(std::ostream &) const;
///
MapleStream & operator<<(MapleStream & ms, MathAtom const & at)
{
- at->maplize(ms);
+ at->maple(ms);
return ms;
}
MapleStream & operator<<(MapleStream & ms, MathArray const & ar)
{
- maplize(ar, ms);
+ maple(ar, ms);
return ms;
}
MaximaStream & operator<<(MaximaStream & ms, MathAtom const & at)
{
- at->maximize(ms);
+ at->maxima(ms);
return ms;
}
MaximaStream & operator<<(MaximaStream & ms, MathArray const & ar)
{
- maximize(ar, ms);
+ maxima(ar, ms);
return ms;
}
MathematicaStream & operator<<(MathematicaStream & ms, MathAtom const & at)
{
- at->mathematicize(ms);
+ at->mathematica(ms);
return ms;
}
MathematicaStream & operator<<(MathematicaStream & ms, MathArray const & ar)
{
- mathematicize(ar, ms);
+ mathematica(ar, ms);
return ms;
}
OctaveStream & operator<<(OctaveStream & ns, MathAtom const & at)
{
- at->octavize(ns);
+ at->octave(ns);
return ns;
}
OctaveStream & operator<<(OctaveStream & ns, MathArray const & ar)
{
- octavize(ar, ns);
+ octave(ar, ns);
return ns;
}
}
-void MathMatrixInset::maplize(MapleStream & os) const
+void MathMatrixInset::maple(MapleStream & os) const
{
os << "matrix(" << int(nrows()) << ',' << int(ncols()) << ",[";
for (idx_type idx = 0; idx < nargs(); ++idx) {
}
-void MathMatrixInset::maximize(MaximaStream & os) const
+void MathMatrixInset::maxima(MaximaStream & os) const
{
os << "matrix(";
for (row_type row = 0; row < nrows(); ++row) {
}
-void MathMatrixInset::octavize(OctaveStream & os) const
+void MathMatrixInset::octave(OctaveStream & os) const
{
os << '[';
for (row_type row = 0; row < nrows(); ++row) {
///
void normalize(NormalStream &) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
///
- void maximize(MaximaStream &) const;
+ void maxima(MaximaStream &) const;
///
void mathmlize(MathMLStream &) const;
///
- void octavize(OctaveStream &) const;
+ void octave(OctaveStream &) const;
};
#endif
}
-void MathNumberInset::maplize(MapleStream & os) const
+void MathNumberInset::maple(MapleStream & os) const
{
os << str_;
}
-void MathNumberInset::octavize(OctaveStream & os) const
+void MathNumberInset::octave(OctaveStream & os) const
{
os << str_;
}
///
void normalize(NormalStream &) const;
///
- void octavize(OctaveStream &) const;
+ void octave(OctaveStream &) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
///
void mathmlize(MathMLStream &) const;
///
}
-void MathRootInset::maplize(MapleStream & os) const
+void MathRootInset::maple(MapleStream & os) const
{
os << '(' << cell(1) << ")^(1/(" << cell(0) <<"))";
}
-void MathRootInset::octavize(OctaveStream & os) const
+void MathRootInset::octave(OctaveStream & os) const
{
os << "root(" << cell(1) << ',' << cell(0) << ')';
}
///
void mathmlize(MathMLStream &) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
///
- void octavize(OctaveStream &) const;
+ void octave(OctaveStream &) const;
};
#endif
}
-void MathScriptInset::maplize(MapleStream & os) const
+void MathScriptInset::maple(MapleStream & os) const
{
if (nuc().size())
os << nuc();
}
-void MathScriptInset::mathematicize(MathematicaStream & os) const
+void MathScriptInset::mathematica(MathematicaStream & os) const
{
bool d = hasDown() && down().size();
bool u = hasUp() && up().size();
}
-void MathScriptInset::octavize(OctaveStream & os) const
+void MathScriptInset::octave(OctaveStream & os) const
{
if (nuc().size())
os << nuc();
/// write normalized content
void normalize(NormalStream &) const;
/// write content as something readable by Maple
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
/// write content as something readable by Mathematica
- void mathematicize(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const;
/// write content as something resembling MathML
void mathmlize(MathMLStream &) const;
/// write content as something readable by Octave
- void octavize(OctaveStream &) const;
+ void octave(OctaveStream &) const;
/// move cursor left
bool idxLeft(idx_type &, pos_type &) const;
/// move cursor right
}
-void MathSpaceInset::maplize(MapleStream & os) const
+void MathSpaceInset::maple(MapleStream & os) const
{
os << ' ';
}
-void MathSpaceInset::mathematicize(MathematicaStream & os) const
+void MathSpaceInset::mathematica(MathematicaStream & os) const
{
os << ' ';
}
-void MathSpaceInset::octavize(OctaveStream & os) const
+void MathSpaceInset::octave(OctaveStream & os) const
{
os << ' ';
}
///
void validate(LaTeXFeatures & features) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
///
- void mathematicize(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const;
///
- void octavize(OctaveStream &) const;
+ void octave(OctaveStream &) const;
///
void write(WriteStream & os) const;
private:
os << "[sqrt " << cell(0) << ']';
}
-void MathSqrtInset::maplize(MapleStream & os) const
+void MathSqrtInset::maple(MapleStream & os) const
{
os << "sqrt(" << cell(0) << ')';
}
-void MathSqrtInset::mathematicize(MathematicaStream & os) const
+void MathSqrtInset::mathematica(MathematicaStream & os) const
{
os << "Sqrt[" << cell(0) << ']';
}
-void MathSqrtInset::octavize(OctaveStream & os) const
+void MathSqrtInset::octave(OctaveStream & os) const
{
os << "sqrt(" << cell(0) << ')';
}
///
void normalize(NormalStream &) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
///
- void mathematicize(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const;
///
- void octavize(OctaveStream &) const;
+ void octave(OctaveStream &) const;
///
void mathmlize(MathMLStream &) const;
};
}
-void MathStringInset::maplize(MapleStream & os) const
+void MathStringInset::maple(MapleStream & os) const
{
if (/*code_ != LM_TC_VAR ||*/ str_.size() <= 1) {
os << ' ' << str_ << ' ';
}
-void MathStringInset::mathematicize(MathematicaStream & os) const
+void MathStringInset::mathematica(MathematicaStream & os) const
{
os << ' ' << str_ << ' ';
}
-void MathStringInset::octavize(OctaveStream & os) const
+void MathStringInset::octave(OctaveStream & os) const
{
if (/*code_ != LM_TC_VAR ||*/ str_.size() <= 1) {
os << ' ' << str_ << ' ';
///
void normalize(NormalStream &) const;
///
- void octavize(OctaveStream &) const;
+ void octave(OctaveStream &) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
///
- void mathematicize(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const;
///
void mathmlize(MathMLStream &) const;
///
}
-void MathSubstackInset::maplize(MapleStream & os) const
+void MathSubstackInset::maple(MapleStream & os) const
{
os << "substack(";
- MathGridInset::maplize(os);
+ MathGridInset::maple(os);
os << ')';
}
///
void normalize(NormalStream &) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
};
#endif
}
-void MathSymbolInset::maplize(MapleStream & os) const
+void MathSymbolInset::maple(MapleStream & os) const
{
if (name() == "cdot")
os << '*';
os << name();
}
-void MathSymbolInset::maximize(MaximaStream & os) const
+void MathSymbolInset::maxima(MaximaStream & os) const
{
if (name() == "cdot")
os << '*';
}
-void MathSymbolInset::mathematicize(MathematicaStream & os) const
+void MathSymbolInset::mathematica(MathematicaStream & os) const
{
if ( name() == "pi") { os << "Pi"; return;}
if ( name() == "infty") { os << "Infinity"; return;}
}
-void MathSymbolInset::octavize(OctaveStream & os) const
+void MathSymbolInset::octave(OctaveStream & os) const
{
if (name() == "cdot")
os << '*';
///
void normalize(NormalStream &) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
///
- void maximize(MaximaStream &) const;
+ void maxima(MaximaStream &) const;
///
- void mathematicize(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const;
///
void mathmlize(MathMLStream &) const;
///
- void octavize(OctaveStream &) const;
+ void octave(OctaveStream &) const;
///
void write(WriteStream & os) const;
///
}
-void MathUnknownInset::maplize(MapleStream & os) const
+void MathUnknownInset::maple(MapleStream & os) const
{
os << name_;
}
-void MathUnknownInset::mathematicize(MathematicaStream & os) const
+void MathUnknownInset::mathematica(MathematicaStream & os) const
{
os << name_;
}
}
-void MathUnknownInset::octavize(OctaveStream & os) const
+void MathUnknownInset::octave(OctaveStream & os) const
{
os << name_;
}
///
void normalize(NormalStream &) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
///
- void mathematicize(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const;
///
void mathmlize(MathMLStream &) const;
///
- void octavize(OctaveStream &) const;
+ void octave(OctaveStream &) const;
///
void finalize();
///
}
-void MathXYMatrixInset::maplize(MapleStream & os) const
+void MathXYMatrixInset::maple(MapleStream & os) const
{
os << "xymatrix(";
- MathGridInset::maplize(os);
+ MathGridInset::maple(os);
os << ')';
}
///
void normalize(NormalStream &) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
};
#endif