MapleEnthusiast

60 Reputation

2 Badges

4 years, 346 days

MaplePrimes Activity


These are questions asked by MapleEnthusiast

Dear Maple community,

I would really appreciate it if you could tell me how I can solve numerically in Maple the following system of equations (the Maple file containing these equations can be found here: Mapleprime_Q.mw):

 

Thank you very much in advance for you help!

Dear Maple community,

I am trying to solve a system of linear equations, each of which is homogenous of degree 1 (i.e., defined up to a scale/constant factor), and was wondering whether one can use Maple to solve for ratios of variables (defined relative to a numeraire). An example of my problem is attached (Example.mw). More specifically:

- Equation (1) defines the system,

- Equations (2) through (4) exemplify the system for J=3 and S=1 (creating the system of 3 equations in 3 unknowns: {dlog R[1,1], dlog R[2,1], dlog R[3,1]},

- Function A solves this system for the unknowns and the subsequent commands simplify dlog R[1,1] (and dlog R[2,1]) using the model's constraints (side relations). Not surprizingly, I get the error message "Error, (in simplify/siderels:-Recurse) indeterminate expression of the form 0/0", which results from the fact that the system is homogenous of degree 1 (and, hence, each dlog R is defined only up to a scale),

- However, in principle, it should be possible to choose one of the dlog R's, say, dlog R[1,1] as a numeraire and express the other two "unknowns" (dlog R[2,1], and dlog R[3,1]), relative to it, in order to ultimately solve this system for dlog R[2,1]/dlog R[1,1] and dlog R[3,1]/dlog R[1,1] as functions of exogenous variables only.

I'd appreciate any advice how I can use Maple to tackle this problem. Thank you very much in advance!

 

Dear Maple community,

I'm trying to simplify the attached Expression "under several parameter constraints", see simplify_under_constraint.mw

The constraints are threefold:

1. pi[1, 1, 1, F] + pi[2, 1, 1, F] + pi[3, 1, 1, F] = 1,

2. pi[1, 2, 1, F] + pi[2, 2, 1, F] + pi[3, 2, 1, F] = 1

3. pi[1, 3, 1, F] + pi[2, 3, 1, F] + pi[3, 3, 1, F] = 1,

It seems like, whenever the constraints appear in the exact order as specified above, simplify(Expression, {(pi[1, 3, 1, F] + pi[2, 3, 1, F] + pi[3, 3, 1, F]) = 1, (pi[1, 1, 1, F] + pi[2, 1, 1, F] + pi[3, 1, 1, F]) = 1, (pi[1, 2, 1, F] + pi[2, 2, 1, F] + pi[3, 2, 1, F]) = 1}) can somewhat simplify the Expression. However, is there a way for Maple to recognize the above-mentioned constraints for all possible "permutations" of, say, pi[1, 3, 1, F] = 1 - pi[2, 3, 1, F] - pi[3, 3, 1, F]; pi[2, 3, 1, F] = 1 - pi[1, 3, 1, F] - pi[3, 3, 1, F], etc. and simplify the expression in the most compact manner.

Thank you.

 

 

Is there a way to prevent Maple from applying the product rule for exponents? That is, keep x*x as it is instead of automatically simplifying it to x^2. Or, alternatively, is there a way to decompose x^2 as x*x?

Dear Maple community,

I am trying to import from a .csv (or .xls) a matrix, whose symbolic elements have subscripts of a type "a[1, 2, 3, 4]" (i.e., datatype=indexed). However, when I enter "ImportMatrix(csvFile, datatype = indexed)", I receive an error message "Error, (in ImportMatrix) unable to store '0' when datatype=indexed". I would highly appreciate your help with importing an indexed matrix. Thank you.

1 2 Page 2 of 2