Antonio_S

259 Reputation

4 Badges

18 years, 74 days

MaplePrimes Activity


These are questions asked by Antonio_S

I have been trying to check solutions for ODE in Maple. However, there is a problem. When I go to the ODE Analyzer Assistant and enter a an ODE like: diff(y(x),x)=e^x/(y+2) and press "Solve Symbolically", I get the following message: "cannot use same name "y" to represent both a parameter and a dependent variable of the problem". I wonder if you could help. Thanx a lot! Antonio
Hi, I am having a problem running nested loops on Mac. The task is: Let a,b,c be logical statements, each of which can take the value true or false. I need to write a Maple program which shows the value (true or false) of the statement: (a and not(b)) or (b and not(c)). the program is: for a in [true, false] do for b in [true, false] do for c in [true, false] do print(a, b, c, evalb((a and not(b)) or (b or not c)))); end do; end do; end do; When I run is in Windows, the output is: true, true, true, true true, true, false, true true, false, true, true true, false, false, true
Could someone help me please to incorporate the command for unique common solutions into a programme. I have a list of values a and b where x ==a(mod e) x==b(mod d) I have the following list of [a,b] pairs: [[0, 0], [1, 1], [0, 2], [1, 3], [0, 4], [1, 5], [0, 6], [1, 0], [0, 1], [1, 2], [0, 3], [1, 4], [0, 5], [1, 6], [0, 0]] I now need to write a procedure where I apply the following command: chrem([a,b],[e,d]) to find the unique common solutions for the listed pairs of a and b. for example chrem([1, 4], [2, 11]) = 15, where e (e=2) and d (d=11) are coprimes. Any hints on how I use each pair of a and b from the above list to generate a list for unique solutions using the chrem command would be most welcome.
It would be great if someone could give me a lead on this: I have 3 sets: A={1,3,4,8}, B={5,6,9}, C={2,0,7}. Is there a command in Maple that can produce all possible combinations of all numbers involved in 3 sets so that I could get the following result: [A1,B1,C1], [A2,B1,C1], [A3,B1,C1], [A4,B1,C1], [A1,B2,C1] etc I have tried the following but the result is: > comb(({1, 3, 4, 8}, {5, 6, 9}, {0, 2, 7}), 3); print(comb({1, 3, 4, 8}, {5, 6, 9}, {0, 2, 7}, 3)); comb({1, 3, 4, 8}, {5, 6, 9}, {0, 2, 7}, 3) thanks...
1 2 3 4 Page 4 of 4