Questions tagged [symbolic-math]

Symbolic math tools allows for analytically process mathematical expressions - without the necessity of assigning specific numeric values to variables.

Common software that allows for symbolic math operations include

See this comparison of computer algebra systems (CAS) for other software packages that support symbolic math operations.

Online examples of Computer Algebra System

1493 questions
-2
votes
2 answers

how to construct sub-expressions with only two variables and one arithmatic operation from complex Expression Maple/Matlab?

let the Symbolic expression is as below. y = s + (a/b)*log((a+c)/(b*a)); %# it can be any type of expression how can I get all possible sub-expressions with two variables and one operator between them. subExpression1 = b*a; subExpression2 =…
Rohithsai Sai
  • 468
  • 4
  • 17
-2
votes
1 answer

Intersection of intervals in Python

I'd like to have in Python the list of the conditions to have an non empty intersection of two intervals, where their bounds are only symbolic. For example for this input: a,b,z = Symbols('a b z') intersect([a,b],[a,b]/z) the output should be the…
user3024655
-2
votes
1 answer

Should T be a parameter, a function, or what?

I'm new here and I don't really know how to precisely ask my question. I have to prepare code that will proceed like x1 = x0 + t* e, which in practice looks like: x1 = [0.5, 1] + [0, t] x1 = [0.5, 1+t] How should I declare t to make it work? I…
bobby
  • 1
  • 1
-2
votes
1 answer

Function analysis, fitting

I have two datasets, which I would like to find the best fitting function types: x <- c(10, 40, 70, 100, 130, 160, 190, 220) y1 <- c(41.8, 45.2, 50.8, 62.5, 73.2, 86.9, 95.4, 107.9) y2 <- c(1.9, 34.3, 269.2, 1119.4, 2627.1, 5801.2, 11794.8,…
poetyi
  • 236
  • 4
  • 13
-2
votes
2 answers

How to convert a string containing math expression into an integer?

I have an array named questions array for String type that stores in the questions. I want to convert the questionArray[0] to an int. I have used the following statement to do that. int aa = Integer.parseInt(questionArray[0]); But when I implement…
Harsh
  • 187
  • 2
  • 2
  • 7
-2
votes
1 answer

Finding the Co-efficient Matrix from a set of equations

syms b1 b2 b3 b4 b5 b6 b7 syms x11 x12 x13 x21 x23 x31 x32 x33 syms S11 S12 S22 S33 ; B= [b1 b2 b3; b4 0 b5; b6 b7 0]; X= [x11 x12 x13 ; x21 x22 x23 ; x31 x32 x33]; C= BX + Xtranspose(B); C1=reshape(C,9,1); x= [x11 x12 x13 x21 x22 x23 x31 x32…
FAM
  • 101
  • 4
-2
votes
2 answers

Calculate symbolic square root of expression (with parameters) in python?

Is it possible to calculate a square root of an expression in python ? For example , the square root of: (a^4 - 8a^2 -16a + 16)? Of course the result will be with a, not a numeric value. I read about math.sqrt() and tried doing this , but pycharm…
Noam
  • 96
  • 1
  • 12
-2
votes
1 answer

Is this a bug in MuPAD?

I have u0 as step function (piecewise definition): piecewise([0 < t, 1], [t < 0, 0]) Now I compute: int(u0(t)|t=k, k=-infinity..t) which gives piecewise([0 < t, t], [t <= 0, 0]) In a textbook I found the answer: piecewise([0 =< t, t], [t < 0,…
TraceKira
  • 281
  • 2
  • 13
-2
votes
1 answer

Mathematical Operation with addition and multiplication

I have been trying to do this operation where quantity or Subtotal=value1+(value2*value3) but I can't figure out how to do the addition and multiplication in that order. I was trying it out on JS Bin and for some reason when I put 1 slab and BD…
MadK3n
  • 1
  • 2
-2
votes
1 answer

Detect missing multiplication in math expression

Given an expression such as (exp(-((-mx + x - y)^2/(2 s1^2))2x - 2y (-my + y)^2/(2 s2^2)))/(2 pi sqrt(s1^2) sqrt(s2^2) what is an easy way to detect all where multiply occurs? The above expression is uniquely defined. Variables cannot start with…
Julius
  • 735
  • 2
  • 6
  • 17
-2
votes
1 answer

In Matlab, how to solve an equation originating in a function?

How do I easiest solve an equation=0 with a function as a parameter? My function with one input variable is called potd(angle), with one output variable, potNRGderiv. I tried: syms x solve(potd(x)) This gave me error: Undefined function 'sind' for…
Christian
  • 1
  • 1
-2
votes
1 answer

Please help to solve my equation in matlab

I spent more than around 15hrs trying to find values of two equations but no result comes out yet. My two equations are: (1.8778e21)=((n*x)/(n+0.0080))(1-exp(-5400*(x+0.0080))) (3.3658e21)=((n*x)/(n+0.0189))(1-exp(-5400*(x+0.0189))) I used sym …
-2
votes
1 answer

Storing function handles in array and then adding them in MATLAB

I am trying to store function handles in array by running a loop and then adding them. for i = 1:n^2 x1 = x_coord(elements(i,1)); x2 = x_coord(elements(i,2)); x3 = x_coord(elements(i,3)); x4 = x_coord(elements(i,4)); y1 =…
Avi Shri
  • 1
  • 1
-3
votes
1 answer

Python: Equation symbolic solution

I was wondering if there was any way I could get the symbolic solution for a variable in an equation using python, as I've been looking around but didn't find exactly what I wanted. What I intend to do is, for example, given: eq = x + y + 5 I'd…
BlackFog
  • 1
  • 3
-3
votes
5 answers

How to write x^2 in my python code? Can someone give me suggestion about my code

The Quadratic Equation Calculator and the code that I used didn't work well. There are some errors on the code. I already tried with basic numbers, like 1/2/3. No equation. Still the code doesn't works. The things that actually work is putting the…
MS_092420
  • 5
  • 1
  • 1
  • 4
1 2 3
99
100