Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about scientific-computing

Read more about scientific-computing

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)

Questions - scientific-computing

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...
test-img

Antony Hatchkins

python

sympy

symbolic-math

scientific-computing

Votes: 0

Answers: 2

Latest Answer

It is possible to call collect and give it a function that should apply to the coefficients after collection and so we can use factor to factorise the coefficients: In [2]: e, a, m, n = symbols('e, a,...
test-img

Oscar Benjamin

Python equivalent for Matlab's fmincon for constrained nonlinear optimization

I'm currently trying to implement a Python script for solving a constrained nonlinear optimization problem with ~1000 variables and ~700 constraints (both linear and nonlinear). There already exists a...
test-img

Bobbybobbobbo

python

matlab

optimization

nonlinear-optimization

scientific-computing

Votes: 0

Answers: 1

Latest Answer

There are several high-quality nonlinear programming solvers in Python. From the comments, it sounds like one of the issues is that the Hessian or Jacobian is not correct in cyipopt. One alternative i...
test-img

John Hedengren

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved