symbolic-math

C# library for algebra simplification and solving [closed]

依然范特西╮ 提交于 2020-05-09 19:36:39
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . There are quite a few algebra solvers and simplifiers on the web (for example, the decent one at algebra.com). However, I'm looking for something I can plug into C# as part of a larger project (I'm making my own calculator, but obviously I'd ask permission etc.). Ideally, I'd use code

C# library for algebra simplification and solving [closed]

人盡茶涼 提交于 2020-05-09 19:36:29
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . There are quite a few algebra solvers and simplifiers on the web (for example, the decent one at algebra.com). However, I'm looking for something I can plug into C# as part of a larger project (I'm making my own calculator, but obviously I'd ask permission etc.). Ideally, I'd use code

C# library for algebra simplification and solving [closed]

。_饼干妹妹 提交于 2020-05-09 19:36:16
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . There are quite a few algebra solvers and simplifiers on the web (for example, the decent one at algebra.com). However, I'm looking for something I can plug into C# as part of a larger project (I'm making my own calculator, but obviously I'd ask permission etc.). Ideally, I'd use code

Is there a way to handle constant function parameters in SymPy?

一个人想着一个人 提交于 2020-04-14 07:34:42
问题 I am generating symbolic functions and using SymPy to simplify them. Now I would like a way to "simplify" symbols that represent constant parameters in a function that is yet to be fitted. For example, if I am generating a polynomial, I might generate a string like this C*x*x + C*x + C*x + C, which SymPy would turn into C*x^2 + 2*C*x + C. Now I would like to find a way to get this: C*x^2 + C*x + C. In other words, is there a way to tell SymPy that a certain symbol is constant and undefined,

Best way to isolate one coefficient of a multivariate polynomial in sympy

那年仲夏 提交于 2020-03-18 04:24:08
问题 I have a multivariate polynomial (which in the general case many many variables) whose coefficients list some data that I need to read off, but it doesn't seem like sympy gives a good way to do this. The collect function seemed like the right idea, but when you use it with several variables, it doesn't actually give you the individual monomials, but rather strange groupings of monomials that depend on the order you listed the variables. Does anyone know of a way to do this? 回答1: The

Evaluating a symbolic function

半世苍凉 提交于 2020-03-15 09:37:29
问题 I want to find cos(5) . Why is this expression invalid: syms x f=sin(x) disp(diff(f)(5)) The error is Line: 3 Column: 12 Indexing with parentheses '()' must appear as the last operation of a valid indexing expression. 回答1: Your error has nothing to do with symbolic variables. It is caused by the statement diff(f)(5) - which is not something MATLAB syntax allows (as of R2019b). MATLAB interprets this as the user trying to access the 5th element of some intermediate result. If you want to know

Symbolic Mathematics Python? [closed]

。_饼干妹妹 提交于 2020-01-28 23:59:44
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . I am extreamly interested in math and programming and planning to start symbolic math project from scratch . Is this good project idea? Where to start? How should one approach this project? Any good resources? Thanks in advance. 回答1: It's a good project to practice

Symbolic Mathematics Python? [closed]

两盒软妹~` 提交于 2020-01-28 23:59:06
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . I am extreamly interested in math and programming and planning to start symbolic math project from scratch . Is this good project idea? Where to start? How should one approach this project? Any good resources? Thanks in advance. 回答1: It's a good project to practice

Can't convert expression to float

旧城冷巷雨未停 提交于 2020-01-24 12:33:30
问题 I'm trying to learn the ins and outs of symbolic manipulation in python (I'm a beginner). I have the following basic code, and the output is giving me an error telling me that it "can't convert expression to float". What's wrong with this code: from sympy import * from math import * def h(x): return log(0.75392 * x) x = symbols('x') hprime = h(x).diff(x) print(hprime) 回答1: This is a classic example of what is said in PEP-8 about wildcard imports: Wildcard imports ( from <module> import * )

Can't convert expression to float

十年热恋 提交于 2020-01-24 12:31:06
问题 I'm trying to learn the ins and outs of symbolic manipulation in python (I'm a beginner). I have the following basic code, and the output is giving me an error telling me that it "can't convert expression to float". What's wrong with this code: from sympy import * from math import * def h(x): return log(0.75392 * x) x = symbols('x') hprime = h(x).diff(x) print(hprime) 回答1: This is a classic example of what is said in PEP-8 about wildcard imports: Wildcard imports ( from <module> import * )