gkokovidis

2355 Reputation

13 Badges

20 years, 105 days
Draeger Medical Systems, Inc.

 

 

Regards,
Georgios Kokovidis
Dräger Medical

MaplePrimes Activity


These are replies submitted by gkokovidis

Post the actual equation, or a Maple 5 Worksheet, using the Green up arrow.  If it can be solved in Maple 5, it can be solved in Maple 2017.  There will be some syntax changes.

//Georgios

@Kitonum Without the plot structure that created the plot, there is no way to extract all of the points automatically to a file, like the plottools:-getdata command is designed to do.  Export will recreate the plot in a picture format.  Not clear that is what the OP desires.  You can right click on the plot, select Manipulator  -Point  Probe, then repeat, and select Probe Info - Cursor Position, but that seems very tedious.  Best to ask whoever sent the plot to the OP to include the data that created it to begin with.

Regards,

Georgios

@Abdu The attached pdf shows the results on my machine.

Regards,

Georgios

HPM.pdf

@mmcdara 

I reran the original code, and the fix, or what really made it work, was the inclusion of the semicolons after the k, and k1 commands.

Error, missing operator or `;`  

I chaged the curly brackets out of habit, as I do not use them in any of the display commands that I have used in the past.  

Regards,

Georgios

@Thomas Jensen10  Your worksheet cannot be opened in Maple, as there are no useful Maple commands in it.  If you open it in a text editor (like Notepad++), you will see what I mean.  It looked like an infinite number of little square symbols. 

Sometimes, on my Windows platform, the same worksheet is backed up with a ".bak", extension.

Try doing a search in your directory for all instances of you filename without any extensions to see if there is something there that might be recoverable.

Regards,

Georgios

Adding to what you already have in place:

A:=Array(map(parse, StringTools:-Explode(convert(a, string))));

Regards,

Georgios

I downloaded your worksheet, and executed in my version of Maple, 2019.2, Windows 7 64 bit.  Ran fine.  The Explore pop-up came up, I clicked Explore and then I saw all the graphs.  Try adding a restart command at the beginning of your worksheet.

Regards,

Georgios

@Joe Riel   Thank you Joe.  I was looking for that in the help page, and overlooked this section:  

 

dsolveargs = list( equation )

Regards,

Georgios

@ogunmiloro Haven't looked into the second error message, but the first one, is due to a multiplicatioin sign missing from your equation.  I would suggest you stop using 2D input mode and switch to 1D.

ODE := [x(0) = -a, diff(x(t), t) = z*x(t) - b + 1] will fix the dsolve error.

Regards,

Georgios

@Earl The link here has a free Spice simulator that you can use with Schematics or a Netlist.  There are hundreds of examples for an RLC if you search for LTspice and RLC on the web.  If you need more help, then ask again, with specific details.

Regards,

Georgios

@Hnx What I see in your worksheet, and what I see in the worksheet provided by Preben are the same, but here is an issue with what you are doing, besides using 2D input mode.

 

You are trying to write code inline using the if then statement, and using the Enter key to move to the next line.  This is a problem.  Two easy ways to get around this.  Write your code in an external editor (like Notepad++), which is what I did, or use Shift+Enter key to advance to the next line, when writing code using if statements, else, for loops, ...  

See your worksheet in the attachment, where the code that Preben provided is in one region without any line breaks.

 

//Georgios
 

restart

r1 := 4; h := -4; sin_phi := h/r1

-1

(1)

"if sin_phi<=-1 then   h:=-0.99*r1:"

Error, unterminated 'if' statement

"if sin_phi<=-1 then   h:=-0.99*r1:"

 

"else  end if;"

Error, unable to parse

"else  end if;"

 

"end if:"

Error, unable to parse

"end if:"

 

NULL

restart

r1 := 4; h := -4; sin_phi := h/r1

-1

(2)

if sin_phi <= -1 then h := -.99*r1; print('h*wurde*redimensioniert'); print(h) else  end if

-3.96

(3)

The code below is the same as your code above, except that I cut and paste each line individually into an text editor, and then I cut and paste the whole thing into Maple below.  As I mention in my reply, you can also do this in Maple line by line, but with the if statement, to advance to the next line, you have to use Shift+Enter.  Give it a try and let us know if this works for you.

restart; r1 := 4; h := -4; sin_phi := h/r1; if sin_phi <= -1 then h := -.99*r1; print('h*wurde*redimensioniert'); print(h) else  end if

-3.96

(4)

 

NULL


 

Download Trouble_with_if_statement_2020-06-10_GKEdits.mw

 

 

@Hnx 

You can print sol_num, to see the output of the procedure.  Not clear if that will help you.

See help page for ?dsolve/numeric/Events for adding a break condition.

Regards,

Georgios

If this is a real circuit, then your system of equations is solvable.  Here is an example using dummy voltages and resistors.  The op amp in the netlist used by the Syrup package is ideal, as is the one in the circuit example used in LTspice.

Syrup can be downloaded from the Application Center.

The attached has 3 voltages V_0 to V_2, but you can easily add as many as you like for your particular application.  Example below with and without values.

Site will not allow me to include the worksheet inline.  See link below.

Download MaplePrimesSynth.mw

Regards,

Georgios

 

@Joe Riel Thank you.  I should have figured this out on my own, but I was looking at a bigger problem, and was using the link example as a starting point.  I apppreciate your response.

Regards,

Georgios

@adel-00 Show the original problem, and how you solved it with your Matlab code (post both), so we have an idea how we would approach it in Maple, and determine the differences between how you obtained the plot in the attached pdf file, vs. what you are showing with your Maple code.

//Georgios

1 2 3 4 5 6 7 Last Page 2 of 24