I want to implement the conditional expectation operator. I will use the capital epsilon E to denote the operator. I expect at least the following input (underscore means subscript) E_2[a] E_2[x_1] E_2[x_1 + y_5] E_1[3 a + b - 4 + 2 x_] E_6[x_5 x_7]
I need to create a 3 by 3 real orthonormal symbolic matrix in Mathematica. How can I do so? --------------Solutions------------- Not that I recommend this, but... m = Array[a, {3, 3}]; {q, r} = QRDecomposition[m]; q2 = Simplify[q /. Conjugate -> I
Is there a way to do symbolic matrix algebra in Mathematica for matrices where the dimensions are unknown? For example, if I have an MxL matrix A and an LxN matrix B, I would like to be able to enter A.B And have it give me a matrix whose element ab[
How can this Mathematica code be ported to Python? I do not know the Mathematica syntax and am having a hard time understanding how this is described in a more traditional language. Source (pg 5): http://subjoin.net/misc/m496pres1.nb.pdf ------------
I was wondering if symbolic computation in Computer Algebra System (such as symbolic toolbox in Matlab, Mathematica) and functional programming related and how? Does the former belong to the latter? Thanks and regards! --------------Solutions--------
Is there a trick to assign a specific color to "user-defined" function such as "function" below : function[x_]:=x^3 Thanks to Mr.Wizard we are able to color all user defined symbols ( Variables Coloring in Mathematica) Would there be a way to refine
Can Mathematica do Bayes Rule conditional probability calculations, without doing the calculation manually? If so how? I have been searching both the Mathemtaica doco and the web for a hint but cannot find anything. I am not after how to do Bayes Rul
The mathematica.SE is currently in private beta and will open to the public in a few days. Stack Overflow and related sites use prettify.js, however Mathematica is not a supported language. It would be pretty awesome to have a custom highlighting scr
What's the algorithm for computing a least squares plane in (x, y, z) space, given a set of 3D data points? In other words, if I had a bunch of points like (1, 2, 3), (4, 5, 6), (7, 8, 9), etc., how would one go about calculating the best fit plane f
Given my previous questions about the the usage of AMPL. Are there any other programming/scripting languages that are strictly meant for mathmatical processing? For example: Matlab (it does deviate a bit from a mathematical structure, but its close e
I am making a little calculator in C, and i want to pass simple arithmetic formulae to my program. But it really does not like me passing character '*' to my program. Why not? And how can I work around this without changing the asterix to something e
I have this specific function to extract parts of a list in the form: Give[list, elem] returns the part of list that corresponds to the position of elem in a global $Reference variable (if defined). I use this function heavily throughout my code, so
I updated the code. What i am trying to do is to hold every lagrange's coefficient values in pointer d.(for example for L1(x) d[0] would be "x-x2/x1-x2" ,d1 would be (x-x2/x1-x2)*(x-x3/x1-x3) etc. My problem is 1) how to initialize d ( i did d[0]=(z-
Is there a refactoring tool, either for C or Java that can simplify this type of redundant code. I believe this is called data propagation. This is essentially what an optimizing compiler would do. public int foo() { int a = 3; int b = 4; int c = a +
In System F I can define the genuine total addition function using Church numerals. In Haskell I cannot define that function because of the bottom value. For example, in haskell if x + y = x, then I cannot say that y is zero - if x is bottom, x + y =
What are the equivalent commands to expand, factor and simplify on Octave? example: expand((x+1)^2); x^2+2x+1 simplify(3*x^2+2); --------------Solutions------------- Well, I think the real problem is that Octave is not ment to support much of symboli
I am looking for symbolic mathematics library for .NET framework. I have looked at Math.net but it's not something usable yet. Do you know if there is another library exists? --------------Solutions------------- This might be overkill, but you can ta
The built-in Mathematica command Save[file, symbol] uses FullDefinition[] to look up the definition symbol and all of the subsidiary definitions. For example, the commands a:=b c:=2a+b Save[ToFileName[NotebookDirectory[],"test.dat"],c] produces the f
I am a big fan of Stephen Wolfram, but he is definitely one not shy of tooting his own horn. In many references he extols mathematica as a different symbolic programming paradigm. I am not a mathematica user, so my question is what is this symbolic p
I'm attempting Mathematica programming, and thought I'd try a calculation that I did by hand manually (a magnetic field phasor calculation from an E&M class), using spherical polar coordinates. I've created a variable and tried to take it's curl: