Questions tagged [ginac]

Not a Computer Algebra System (CAS). A library for manipulating symbolic mathematical expressions

A C++11 library that provides an easy-to use interface for non-interactive manipulation of symbolic, algebraic expressions. The project website is here: http://www.ginac.de/

14 questions
4
votes
0 answers

Symbolicc++ VS GiNaC

I am about to start working on a project that requires symbolic manipulations mainly related to units of measurement. I ran into symbolicc++ and ginac but it is not clear to me what are the advantages and disadvantages of each so that I can make a…
palmp
  • 43
  • 2
2
votes
1 answer

Who can tell me how to init a ex object with a string?

Does anyone use the GINAC? Can you tell me how to init an ex object with a string, or convert a string to ex?
EastStar
  • 23
  • 3
1
vote
0 answers

Simplify a GiNaC expression

I am trying to do something very simple with GiNaC: void assert(bool x) { if (!x) throw runtime_error("Assertion error"); } #include int main(int argc, char *argv[]) { assert(sqrt(ex(32)) == 4 * sqrt(ex(2))); //…
HerpDerpington
  • 3,751
  • 4
  • 27
  • 43
1
vote
2 answers

Operator-function + with two implicit casts doesn't work

I'm trying to port some parts from ginac (www.ginac.de) to C#. But I encountered this: class Program { static void Main(string[] args) { symbol s = new symbol(); numeric n = new numeric(); ex e = s + n; //…
1
vote
1 answer

GiNaC order of the output

I am building an application written in C++, that heavily involves algebra. I decided to use GiNaC for Computer Algebra System (CAS) It is working perfectly; however there is a little problem. The order of the elements are not how I want them to be…
0
votes
2 answers

Linking Static Library to iPhone App

I'm trying to link 2 static libraries with my iPhone app. When I compile a separate, identical file with g++ that links against the 2 libraries like this: c++ main.cpp -o main -lcln -lginac it works fine. In my app I went to build phases ->…
Jack Rogers
  • 305
  • 3
  • 14
0
votes
0 answers

How to represent and simplify symbolic expressions in GiNaC

I am pretty new to GiNac library in c++ and am struggling with one particular topic. I want to represent and simplify symbolic expressions (expressions with union, intersection, and not operator) with GiNac. I have been trying the following…
brokendreams
  • 827
  • 2
  • 10
  • 29
0
votes
1 answer

How to resolve 'std::__cxx11::basic_ostringstream, std::allocator >::basic_ostringstream()@GLIBCXX_3.4.26' error?

I would like to use the GiNaC library within a Code::Blocks C++ project, but encounter the following errors during project build: ../../ginac/lib/libginac.so: undefined reference to `std::__cxx11::basic_ostringstream,…
messier87
  • 1
  • 1
0
votes
1 answer

Got an 'Undefined Symbols' error when compiling .cpp file with ginac

I'm using gcc(version 11) to compile my .cpp file, and the code is below, which is copied from the official website of ginac. #include #include using namespace std; using namespace GiNaC; int main() { symbol x("x"),…
0
votes
1 answer

Use C++ library from Swift in iOS App

I want to use a C++ library in Swift: GiNaC. I have seen tutorials on how to use C++ libraries in Swift but I do not know if this will work for iOS or how to deal with dependencies. GiNaC has CLN as a dependency. How to achieve this?
MF Joney
  • 1
  • 1
  • 5
0
votes
2 answers

How to download older version of ginac through git

I want to download older libraries from a git repository to desktop. How one does it? For example I am trying to download ginac_1-6-5 from http://www.ginac.de/ginac.git/
BabaYaga
  • 457
  • 5
  • 20
0
votes
1 answer

Install ginac on Ubuntu 16.04 - no such file or directory

I am trying to install ginac on Ubuntu 16.04 I have installed ginac-tools from sources. However, when I copy the example given on the website into my code, it says: cannot find such file or directory (in the #include ginac line). #include…
kassio
  • 57
  • 1
  • 12
0
votes
2 answers

GiNaC undefined reference

I am currently trying to develop a C++ application which will envolve solving some algebraic tasks (such as differentiation or integration) using GiNaC; I've installed it first from the Ubuntu Software Center (Ubuntu 13.04) and afterwards directly…
-1
votes
2 answers

C++ weird third-party function constructor

I have a third-party library, and I want to use one of the supplied constructors. ex.h: /** Construct example from string and a list of symbols. The input grammar is * similar to the GiNaC output format. All symbols and indices to be used * in…
Jony
  • 53
  • 10