"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "doc/examples/derivative.cpp" between
ginac-1.7.11.tar.bz2 and ginac-1.8.0.tar.bz2

About: GiNaC (GiNaC is Not a CAS (Computer Algebra System)) is a C++ library for symbolic calculations.

derivative.cpp  (ginac-1.7.11.tar.bz2):derivative.cpp  (ginac-1.8.0.tar.bz2)
// Input expression containing variable 'x' and compute its derivative // Input expression containing variable 'x' and compute its derivative
// with respect to 'x'. // with respect to 'x'.
// Example from the tutorial (chapter Input/Output, section `Expression // Example from the tutorial (chapter Input/Output, section `Expression
// input'). // input').
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <stdexcept> #include <stdexcept>
#ifdef IN_GINAC
#include "ginac.h"
#else
#include <ginac/ginac.h> #include <ginac/ginac.h>
#endif
using namespace std; using namespace std;
using namespace GiNaC; using namespace GiNaC;
int main() int main()
{ {
cout << "Enter an expression containing 'x': " << flush; cout << "Enter an expression containing 'x': " << flush;
parser reader; parser reader;
try { try {
ex e = reader(cin); ex e = reader(cin);
 End of changes. 2 change blocks. 
0 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)