Questions tagged [symbolic-computation]

Symbolic computation or algebraic computation or computer algebra relates to algorithms and software for manipulating mathematical expressions and equations in symbolic form, as opposed to manipulating the approximations of specific numerical quantities represented by those symbols.

Symbolic computation or algebraic computation or computer algebra relates to algorithms and software for manipulating mathematical expressions and equations in symbolic form, as opposed to manipulating the approximations of specific numerical quantities represented by those symbols.

See http://en.wikipedia.org/wiki/Symbolic_computation

83 questions
0
votes
1 answer

Matlab: Solving Symbolic System of Linear Equations with Interpolation functions

I've been trying to solve a system of linear equations, with some variables being interpolated functions of other variables. I've tried turning these functions into symbolic functions, but that doesn't seem to work. Does anybody have a workaround…
0
votes
2 answers

Overload ternary ?: operator, or change to if{}else{} in included files

Research project here. In my C++ library, I am including C files: #include "aprogram.c" which I execute symbolically by overloading (almost) all operators. I have to be able to detect (condition) ? this : that and extract condition, this and that…
0
votes
1 answer

Is there a workaround to avoid SymPy hanging for high order trigonometic integrands?

I tried the following integral in SymPy 0.7.3: import sympy from sympy import cos, sin, pi sympy.var('x, L') sympy.var('i, k', integer=True) integrand = cos(pi*i*x/L)**2*cos(pi*k*x/L)**2*sin(pi*i*x/L)*sin(pi*k*x/L) print(sympy.integrate(integrand,…
Saullo G. P. Castro
  • 56,802
  • 26
  • 179
  • 234
0
votes
2 answers

MATLAB Symbolic coeffs issues

I'm working with MATLAB's symbolic toolbox, and I'm having some issues pulling out the coefficients of derivatives. Maybe MATLAB can't do what I am looking for. Anyway, code that reproduces the issue I'm having is shown below: clear ; close all;…
Chimi
  • 315
  • 2
  • 5
  • 16
0
votes
2 answers

integrate cos(x)*cos(2x)*...*cos(mx) via SAGE

I'm going to find $I_m=\int_0^{2\pi} \prod_{k=1}^m cos(kx){}dx$, where $m=1,2,3\ldots$ Simple SAGE code: x=var('x') f = lambda m,x : prod([cos(k*x) for k in range(1,m+1)]) for m in range(1,15+1): print m, numerical_integral(f(m,x), 0,…
0
votes
4 answers

Generate sequence using previous terms sympy

I would like to generate a sequence such that the previously generated element was included in the next element, I am unsure how to do this. i.e generate the list such that its items were: where x is just a Sympy…
user124123
  • 1,642
  • 7
  • 30
  • 50
-1
votes
1 answer

Common Lisp - symbolic polynomial calculation

I would like to perform some symbolic calculations on lisp. I found useful derivative function and I would like to know how to write simple recursive function to add/substract/etc. polynomials. Input (e.g.): (addpolynomial '(+ (^ (* 2 x) 5) 3) '(+…
kzz
  • 33
  • 1
  • 9
-2
votes
1 answer

Is there a procedure to convert m-file-function to C(or MEX) S-function?

I have a simple function written as MATLAB code. For example: function s = sum_inputs(a,b) s = a+b; This function derives from matlabFunction command application using a symbolic expression. I could like to convert it to S-Function for speed-up…
cyberdyne
  • 426
  • 3
  • 5
  • 23
1 2 3 4 5
6