問題タブ [symbolic-computation]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
2 に答える
1165 参照

performance - MATLAB: Can you speed up solving a symbolic system of equations in a loop?

I'm trying to solve a symbolic system of equations for many variables. The structure of the equations will change based on the entries of AM, so solving these equations casually won't work well. This code does what I expect it to, however I need to solve for approximately 20,000 cases, so it is too slow. Is there any way to speed it up (possibly using vectorization?).

Edit: For clarification, in the future I plan to have the entries of AM as parameters. These entries will vary, but will only have 1 or 0 values.

0 投票する
1 に答える
697 参照

python - SymPy でのモジュロ 2 演算

私は、GF(2^N) から GF(2) への変換多項式システムに取り組んでいます。変換の過程で、行列の合計や乗算など、モジュロ 2 の計算をたくさん行う必要があります。

Sympy でモジュロ 2 演算を使用して行列を合計および乗算する方法はありますか?

0 投票する
1 に答える
558 参照

symbolic-math - Maxima CAS : ev() で後で上限を指定すると、シンボリックな上限 n を持つ合計が単純化されない

次の 2 つのマキシマ コードは同等である必要があります。

と:

最初のケースでは、maxima は式を 8 に評価することを知っています。2 番目のケースでは、単純化されず、i = 1 から 2 に対する x[i] の記号的な合計が残されます。

maxima が 2 番目の式を最初の式と同じであると認識できないのはなぜですか?

(コードの最初の部分のように) 答えをハードコーディングする以外に、上限が後で指定される合計を評価するときに、インデックス付き変数を使用して合計を完全に評価するにはどうすればよいですか?

0 投票する
1 に答える
531 参照

c++ - SymbolicC++ でシンボリック変数を入力する方法

式の入力を受け取り、それを統合して結果をユーザーに出力するプログラムを作成しています。SymbolicC++ を使用していますが、シンボリックを入力する方法がわかりません...どうすればよいですか - IDE に Visual Studio を使用しています

0 投票する
2 に答える
222 参照

sage - Sage で記号式を使用して代入できますか?

Sage で次のマップを使用しています。

x= 0 の場合はf(x) = 0x!=0の場合はf(x)=1と評価されます。

シンボリックな結果では、sgn(x)^2sgn(x)^4sgn(x)^8などは、 xのすべての値が等しいにもかかわらず、等しくないものとして扱われます。次のようなものに置き換える方法はありますか:

これらの関係のすべての出現、およびxのすべての記号値に対して?

すべてのシンボルに対して新しい置換ルールを作成できます。

などですが、それを制御するのは難しいようです。

0 投票する
0 に答える
175 参照

symbolic-computation - KLEEはどのように記憶をモデル化しますか?

http://www.doc.ic.ac.uk/~dsl11/klee-doxygen/overview.html

バイナリのメモリをモデル化しようとしているので、KLEE がそれをどのように処理するかを確認したいと思います。しかし、概要から説明を理解するのに苦労しています。

簡単な説明と、これがどのように行われるかの簡単な例を得ることができますか?

0 投票する
2 に答える
479 参照

matlab - How can I define f(x) = x/x in MATLAB (Symbolic Computation)

I try with these commands

and

, but both of them produce

f(x) = 1

(yes.. for every real x including 0)

The question is how I can avoid the pre-evaluation in the command "sym", or there exists another way to handle this problem.

Thank you very much!

update 21.05.2014:

Let me describe the problem a little bit.

Consider

f(x) = x/x

and

g(x) = 1

It is obvious that domains of f and g are R-{0} and R respectively.

The automatic simplification in sym/syms may lead to lose some info.