python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Why does MATLAB fail to check the equality of this trigonometric expression
isequaln() is testing symbolic objects for equality as stated in the documentation. However, this is not the case with the following script.
syms a
f1=cos(a)^2;
f2=1-sin(a)^2;
isequaln(f1,f2)
ans =
...

CroCo
Votes: 0
Answers: 1
Collect similar terms in sympy
I'm solving the Maxwell Garnett equation with SymPy:
solveset(Eq((e-m)/(e+2*m) = n*(a-m)/(a+2*m)), m)
Is it possible to simplify the solution by grouping similar terms together like Mathematica does...
Antony Hatchkins
Votes: 0
Answers: 2
Symbolic Calculus and Integration in Python
I am trying to numerically compute a double integral.
The issue is that (I think) I need a mix of symbolic integration and numerical integration.
The integral looks something like this:
I cannot use ...
user1868607
Votes: 0
Answers: 3
Partially differentiate a function in R using the 'Deriv' package
I need to write a function in R which depends on a vector x (which changes with every simulation) and has parameters beta_0, beta_1, beta_2. I'm trying to find the partial derivative of this function ...
Debika Ghosh
Votes: 0
Answers: 1