How Can I Extract Function Expressions from a DSolve Solution in Mathematica?

AI Thread Summary
The user is trying to extract function expressions from a DSolve solution in Mathematica, which returns results in the form of an array with function definitions. They want to create a matrix with the actual expressions rather than the function definitions. The attempted method of using replacement with R11 did not yield the desired result, as it returned the function instead of the expression. The solution was found, resolving the issue of extracting the expressions for matrix construction. The discussion highlights a common challenge in manipulating function outputs in Mathematica.
Qubix
Messages
82
Reaction score
1
Member warned for not using posting template
I have a very simple issue with Mathematica, but I can't seem to find an answer for it.

I solved an equation with DSolve, and I got a result as an array of the following type:

Solution = { A11 -> Function[ {t} , expression1] , A22 ->Function[ {t}, expression 2] , etc }

Now I want to define a matrix with elements {{A11, A12},{A21, A22}} and to give these elements the values for expression1, expression 2, etc, essentially to put those functions in a matrix:

{{ expression 1, expression 2},{ expression 3, expression 4}}

What I tried so far is to use R11 = {A11} /. Solution[[1]] , but it gives R11 the value Function [ {t} , expression 1] and not expression 1.

How can I solve this issue?
 
Physics news on Phys.org
Solved. Thanks.
 

Similar threads

Replies
3
Views
1K
Replies
13
Views
2K
Replies
4
Views
2K
Replies
2
Views
1K
Replies
37
Views
6K
Replies
3
Views
2K
Replies
1
Views
3K
Replies
1
Views
1K
Back
Top