computer-algebra-systems

Equations Equality test (in C++ or with Unix tools) (algebra functions isomorphism) [closed]

╄→гoц情女王★ 提交于 2019-12-05 06:11:46
Closed. This question is off-topic . 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 . I am looking for C++ open-source library (or just open-source Unix tool) to do: Equality test on Equations . Equations can be build during runtime as AST Trees, string or other format. Equations will mostly be simple algebra ones, with some assumptions about unknown functions. Domain, will be integer arithmetic (no floating point issues, as related issues are well known - Thanks @hardmath for stressing it out, I

Maxima: convert matrix to list

旧街凉风 提交于 2019-12-05 02:01:52
I convert list to matrix in Maxima in following way: DataL : [ [1,2], [2,4], [3,6], [4,8] ]; DataM: apply('matrix,DataL); How to do it the other way ? How to convert given matrix DataM into list DataL ? I know it's late in the game, but for what it's worth, there is a simpler way. my_matrix : matrix ([a, b, c], [d, e, f]); my_list : args (my_matrix); => [[a, b, c], [d, e, f]] Simon I'm far from a Maxima expert, but since you asked me to look at this question , here's what I have after a quick look through the documentation . First, looking at the documentation on matrices yielded only one way

Computer algebra for Clojure

删除回忆录丶 提交于 2019-12-04 10:17:01
问题 Short version: I am interested in some Clojure code which will allow me to specify the transformations of x (e.g. permutations, rotations) under which the value of a function f(x) is invariant, so that I can efficiently generate a sequence of x's that satisfy r = f(x). Is there some development in computer algebra for Clojure? For (a trivial) example (defn #^{:domain #{3 4 7} :range #{0,1,2} :invariance-group :full} f [x] (- x x)) I could call (preimage f #{0}) and it would efficiently return

Computer algebra for Clojure

爱⌒轻易说出口 提交于 2019-12-03 05:17:10
Short version: I am interested in some Clojure code which will allow me to specify the transformations of x (e.g. permutations, rotations) under which the value of a function f(x) is invariant, so that I can efficiently generate a sequence of x's that satisfy r = f(x). Is there some development in computer algebra for Clojure? For (a trivial) example (defn #^{:domain #{3 4 7} :range #{0,1,2} :invariance-group :full} f [x] (- x x)) I could call (preimage f #{0}) and it would efficiently return #{3 4 7}. Naturally, it would also be able to annotate the codomain correctly. Any suggestions? Longer

Haskell library like SymPy? [closed]

随声附和 提交于 2019-12-03 04:46:34
问题 Closed. This question is off-topic. 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 . I need to manipulate expressions like 1 + sqrt(3) and do basic arithmetic like addition, subtraction, and division. I'd like the result to be in some sort of canonical form so that it can be used as a key in a map. Turning 1 + sqrt(3) into a float is not feasible due to roundoff problems. I used SymPy for this

Introduction to computer algebra systems? [closed]

浪子不回头ぞ 提交于 2019-12-03 01:43:24
问题 Closed. This question is off-topic. 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 . Does anybody know of any resources (books, classes, lecture notes, or anything) about the general theory of computer algebra systems (e.g. mathematica, sympy)? "Introductory" materials are preferred, but I realize that with such a specialized subject anything is bound to be fairly advanced. 回答1: "General Theory"

Introduction to computer algebra systems? [closed]

痴心易碎 提交于 2019-12-02 13:52:41
Does anybody know of any resources (books, classes, lecture notes, or anything) about the general theory of computer algebra systems (e.g. mathematica , sympy )? "Introductory" materials are preferred, but I realize that with such a specialized subject anything is bound to be fairly advanced. "General Theory" of CAS is a pretty huge scope for a question. That being said, I'll do my best to cover as much as I can in the hopes that something helps you find what you're looking for :) The proceedings of the ISSAC and SIGSAM groups would no doubt have some good stuff about techniques for building

How to do function composition in Sympy?

て烟熏妆下的殇ゞ 提交于 2019-12-02 00:39:07
问题 I want to do something like h = f(g(x)) and be able to differentiate h, like h.diff(x) . For just one function like h = cos(x) this is in fact possible and the documentation makes it clear. But for function compositions it is not so clear. If you have done this, kindly show me an example or link me to the relevant document. (If Sympy can't do this, do you know of any other packages that does this, even if it is non-python) thank you. 回答1: It seems that function composition works as you would

Multivariate Taylor approximation in sympy

限于喜欢 提交于 2019-12-01 04:40:58
I aim to write a multidimensional Taylor approximation using sympy , which uses as many builtin code as possible, computes the truncated Taylor approximation of a given function of two variables returns the result without the Big-O-remainder term, as e.g. in sin(x)=x - x**3/6 + O(x**4) . Here is what I tryed so far: Approach 1 Naively, one could just combine the series command twice for each variable, which unfortunately does not work, as this example shows for the function sin(x*cos(y)) : sp.sin(x*sp.cos(y)).series(x,x0=0,n=3).series(y,x0=0,n=3) >>> NotImplementedError: not sure of order of O

Multivariate Taylor approximation in sympy

倖福魔咒の 提交于 2019-12-01 02:00:44
问题 I aim to write a multidimensional Taylor approximation using sympy , which uses as many builtin code as possible, computes the truncated Taylor approximation of a given function of two variables returns the result without the Big-O-remainder term, as e.g. in sin(x)=x - x**3/6 + O(x**4) . Here is what I tryed so far: Approach 1 Naively, one could just combine the series command twice for each variable, which unfortunately does not work, as this example shows for the function sin(x*cos(y)) : sp