Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

I want to use this L3 list as the index of another list. I am trying to create a model for short time electricity load forecasting in Maple. I am fairly new to maple coding structures. Can anybody suggest an easier way for doing this kind of thing in Maple? Can I use matrix generation? Please give me suggestions. 
Note: Currently working in a Doc File. 
The code is pasted below: 

L1 := [seq([seq(seq1[i], i = 1 .. 7)], i = 1 .. 24)];

L2 := [seq(i, i = 1 .. 24)];



local(i, j, L3);
L3 = [];
for i to 24 do
    for j to 7 do if i = 1 then L3[i][j] := L1[i][j]; else L3[i][j] := L1[i][j] + L2[i] - 1; end if; end do;
end do;
print(L3);

How can I found the area of the region bounded by 

y=e^xcos(x), y=o, x=−π/2, x= π/2 ?

I have an example where I try to calculate an infinite sum (G&R1.641.1)  in Maple 2022 (or 2021).  I get a different numerical result when I evaluate the sum if I express the coefficients c(m) in the sum using Maple's doublefactorial function for m!! (c1(m)) or the equivalent expression involving the factorial function (c2(m)).  Only the latter gives the correct value for the sum.  This happens even though Maple gives the same numerical value for the coefficients c1(m) and c2(m).  What's going on?? Please see the attached spreadsheet.

Download doublefactorial_test.mw

Dear all

I solved a linear system using Jacobi method , then I plot the solution, someting is wrong, I can't plot the solution 

jacobi.mw

Thank you for your help 

I have the following expression (result of a calculation):

(1/1296)*cBooP0-(1/1296)*cSRP0-(1/1296)*tStartRamp*f__SR/N

Rather obviously the common factor 1/1296 can be factored out, except I cannot get Maple to factor the 1/1296 without also factoring out N, which I do not want. My desired end result is this:

(1/1296)*(cBooP0-cSRP0-tStartRamp*f__SR/N)

I don't seem to be able to coerce Maple to do this. I can freeze the tStartRamp*f__SR/N term (leaving the 1/1296 unfrozen), but in that case I don't get Maple to pull the 1/1296 factor out at all.

Any hint would be appreciated. I am doing this on Maple 2015. It is really a bit cosmetic, but sometimes I use Maple to write "smart" documentation & then I'd like to end up with a somewhat polished result.

Mac Dude

As the LPsolve package returns the solution points in a list format, how we can analyze the list if we're having a large instance problem? By large instance, I mean that there are around 1500+ variables in the linear programming model. 

Also, I have attached the screenshot of the output in this thread. To perform further analysis, I want to fetch the value of the DQV, QF, and UQT variables. But since the list contains the values as an expression, for example DQV[0, 0, 0, 0] = 0. In such cases, I cannot perform mathematical operations for the solution points results.

Also, if I can delete the DQV[0,0,0,0] from the expression mentioned above, I'll end with the numeric values list, which can then be converted into an array and make things easier for me. But currently, I'm struggling to delete the DQV part of the expression in one go (manually deletion for each expression, it's very time consuming to delete for 1500 variables).

Please suggest to me some approach to deal with this issue.

 

I am thanking you.

Regards

I am having a problem in evaluating a fluid flow problem at a boundary that includes infinity using a semi-analytic method Adomian Decomposition Method.

Find the attached code. Thanks in advance.

I recently upgraded to Maple 2022 just to use the new latex command. It seems I still can't export DataFrame types, I'm very disappointed. What am I doing wrong?

restart:
test:= DataFrame( [[1]], columns = [1] );
latex(test);

returns:

Error, (in DataFrame:-type) invalid input: subtype expects its 2nd argument, _t, to be of type type, but received And(symbol,satisfies(u -> substring(u,1 .. 9) = ('`\\mapleref`')))

Using File > Export As > LaTeX also doesn't work.
Printing the function call using printlevel := 100000: returns the following:

I've attached the worksheet for reference. Demo.mw
Does anyone know a workaround?

-Thanks for the Help

dear all

I try to create a table with four columns but someting wrong, the code contains few lines, 

table_columns.mw

Thank you for your help 

dear all

I have a system of 4 equations with 4 unkowns, but maple says that there 7 unknowns, and fsolve does return any solution

problem_solve_system.mw

Thanks

Hi! I'm new to Maplesoft. I would like to use it for my research. However, in order to do so, i have to construct an n-dimensional vector space, with vectors of the form A_1*B, A_2*B, ..., A_k*B, where A_i is a set of  n components from a Field (or ring) and B is the basis for the vector space.

It would REALLY help if you could give some ideas for me to bring this up, or else i will be forced to typset every one of the vectors i'll use in a matrix-multiplication form and will make considerably harder my work.

Just wondering how I do a loop over the contents of the table. I need both the index variable and the stored value associated with it.

This one apparently doesn't work.

F_vRk := table()

table( [ ] )

(1)

F_vRk["a"] := 1

1

(2)

F_vRk["b"] := 2

2

(3)

"for ind, val in F_vRk  do print(ind,val)  end do"

1, F_vRk

(4)

NULL

Download table_and_loop_1.mw

How do I simplify :

Zin := Rin + omega*L*I + (omega*L)^2/(RL + omega*L*I);
 

so that there are no imaginary terms in the denominator?  

I've tried, 

assum := Rin::real, omega::real, L::real, RL::real, 0 < Rin, 0 < omega, 0 < RL, 0 < L
Zin := Rin + omega*L*I + (omega*L)^2/(RL + omega*L*I);
 
(simplify(Zin) assuming assum);

but this doesn't work.

Dear all

I tried to solve a second order ODE, using dsolve but maple doest not return an explicit solution and no solution plotted. 

solve_ode.mw

thank you for your help 

Hey everyone,

I am trying to solve this differential equation for h(u):

h(u)^2 + 2*a*h(u)/sqrt(1 + diff(h(u), u)^2) = b^2

for given values of a and b. For a=3 and b=1 maple gives :
u - Intat((_a + 1)*(_a - 1)/sqrt(-(_a^2 + 6*_a - 1)*(_a^2 - 6*_a - 1)), _a = h(u)) - _C1 = 0, u - Intat(-(_a + 1)*(_a - 1)/sqrt(-(_a^2 + 6*_a - 1)*(_a^2 - 6*_a - 1)), _a = h(u)) - _C1 = 0

and I dont know what to do from there. Any help would be very much appreciated

First 193 194 195 196 197 198 199 Last Page 195 of 2097