asymptote + odesolve
How to return a string vector from a custom function?
I am working on a custom function and I would like it to return something like this:
In MCADINCL.H, the only return formats defined are:
// types to be used in declaration of the function's
// arguments and of the return value
#define COMPLEX_SCALAR 1
#define COMPLEX_ARRAY 2
#define STRING 8
There is no STRING_ARRAY, is there a way I can do this?
Something similar is done in this thread: import data with dat file and string
Thanks in advance
Out of memory error - memory leak problem
Hi,
I'm using MatCAD 15 and have plenty of RAM. For deconvolution I use a program freely avaiable in the Internet, which runs smoothly on my computer, but after a relatively short time (3-5 min) the program stops working and gives an 'out of memory' error, probably due to an memory leak problem. Can sombody give me some tips avoiding this problem?
best Jakob
How do I make Mathcad 15 remember my units?
I'm having issues making Mathcad 15 remember unit redefinitions, this is especially a bother when using the explicit function.
When I calculate a UDL from a pressure load (kPa x m = kN/m) Mathcad defaults the answer in kg/s^2. I redefine the units as kN/m which is okay, but when the variable is recalled, Mathcad returns the units to kg/s^2, this makes using the explicit function ugly. Any help?
I've tried making the variable unitless and then reassigning it on the next page over but this doesn't seem to help either.
Example doc attached
Ptc_d can't connect to lmgrd on Windows Server 2012 (-96,461)
We've been upgrading our servers and now I need to move the licensing for Mathcad Prime 3.0 as well.
The new server is a Windows Server 2012 r2 and I'm trying to install lmadmin 11.11.1. (Same error with lmgrd 11.11, 10.8 both manual installation and setup)
The lmadmin installer just reports the server as unreachable, but looking through the logs show this (same behavior & error as other versions tested):
lmadmin.log
2016-02-13 14:56:26,488 root Version: 11.12.1.1 build 148864 (2014.04.25-04.26.06)
2016-02-13 14:56:26,488 root.LicenseEngine started without redundancy.
2016-02-13 14:56:36,609 root.Vendor (ptc_d) stopped.
2016-02-13 14:56:36,609 root.LicenseEngine (ptc_d) exited with status 28. (Communications error)
2016-02-13 14:56:46,781 root.Vendor (ptc_d) stopped.
...
2016-02-13 14:57:06,970 root.Vendor (ptc_d)maximum number of start retry is reached.
ptc_d.log
14:56:56 (ptc_d) Using options file: "C:\Program Files\PTC\FLEXnet Admin License Server\licensing\ptc.opt"
14:56:56 (ptc_d) Server started on FILESERVER for: 254
14:56:56 (ptc_d) 255 256 257
14:56:56 (ptc_d) MATHCAD
14:56:56 (ptc_d) EXTERNAL FILTERS are OFF
14:56:56 (ptc_d) ALL FEATURES: INACTIVITY TIMEOUT set to 7200 seconds
14:56:56 (ptc_d) Report log started (+C:\Program Files\PTC\FLEXnet Admin License Server\logs\ptcreport.log).
14:57:06 (ptc_d) Vendor daemon can't talk to lmgrd (License server machine is down or not responding. (-96,491))
14:57:06 (ptc_d) EXITING DUE TO SIGNAL 28 Exit reason 5
I have added the required rules to the windows firewall (by now a bit more then required), TCP 7788 in/out, lmadmin in/out, ptc_d in/out, lmgrd in/out, going to clean it out when i get it to work.
Looking at the license.dat file all licenses, paths & seems fine and HOST ID and server name is a match.
I've been trying everything I can think of (specified port for ptc_d and matched firewall rules, manually installing everything according to instructions, tried different versions) and has searched for an answer but have found none where it wasn't the firewall. I've tested the firewall for port 7788 by configuring another software to listen to the port and it was reachable.
Would appreciate any insight you might have.
How to multiply two matrices (having a variable in them)?
Samme numbers, different results???
Numerical Solutions To Differential Equations
Can someone help me with a mathcad 3.0 numerical solution for the problem attached. I need to be able to write a loop to compute the displacements, velocity, and accelerations at each time step, and then plot these graphs vs time.
thanks
Graphing/vectors with 'if' statements
Just trying to familiarise myself with MathCAD, and start the process of converting from Excel...
As a practice problem, I'm trying to graph a functions which involves an 'if' statement: tractive effort (force) determined either by a maximum (limiting) value, or by dividing the available power by speed, whichever gives the lower value.
In Excel I'd use a 'min()' function at each point, but this isn't going to work in MathCAD because it will look at the whole of my speed vector (for plotting) and find the single minimum value. Therefore I'm using an 'if - otherwise' statement to define my function for tractive effort. This works for any individual speed value, including a single index of my speed vector, but won't accept the full vector to generate a graph.
At least the units seem to be behaving themselves!
How should I be approaching this?
Way to Implement a TimeOut (limit calculation time) for a Solve Block?
In MathCad 15, is there a way to limit the calculation time, or implement a time out, for a solve block?
I have a parameterized solve block in which there are some values of the inputs that cause the solve block to run continuously (or at least longer than I'm willing to wait).
I'd like to skip over those instances where it does this in the looping of the parametrized solve block and continue on to the next set of inputs in the loop.
Thank You
Result in procent
How to solve the differential equation contains two unknown variables for a symbolic solution in the mathcad?
Is there a way to get rid of white space when using "hide left-hand side"
I have a rather large formula that I'm trying to show with an explicit function, as it is too big I cannot do this all on one line. Is there a way to have:
x= big big function
x= big big function explicit,ALL (hide left-hand side, hide key words)
x= answer
without the explicit function leaving a big space for the hidden formula?
example doc attached
proplem in installing mathcad prime 3.1
License not found
I'm trying to get the evaluation time of 30 days started but the software keeps stating that the maximum number of licenses heve been reachred. There is no lisence installed and I have never had a trial license before.
Table with Text box
Hello,
Is there any way we can create the Textbox in the component builder and a search button
Please help if any body know this
Congratulation to Valery Ochkov
Hi,
Some interesting Maple documents made by Valery Ochkov.
http://www.mapleprimes.com/posts/202852-New-Thermal-Engineering-Applications
wzelik
Is there a way to filter a matrix or range and turn extreme values into another?
I'm trying to make a function that can sort through a matrix/range and turn very high or very low values into maximum values and leave all middle values as zero. However mathcad seems to just set everything as zero despite earlier inequalities being true, is there any way to sort this?
Example doc attached
coupled differential equations
Can someone help me with a mathcad problems in coupled differential equations. please solve the example problems.
help!.. how can i plot a 3d surface graph from 3 columns of data i've got in excel?
hi, this can't be hard can it?.. am new to mathcad and am trying to import 3 columns x12 rows of excel data by copy/paste into a table and/or a matrix etc with the intention of plotting on a 3d surface graph
...I can paste the values into the mathcad matrix ok but can't seem to assign a variable name to the matrix... so graph can't load it (nor can anything else refer to it I suppose)
...the table rows/columns aren't read in from the excel data - they are presumed 0, 1, 2 etc - so axes are preset to 0, 1, 2... rather than 1st 2 columns of data in excel file - graph just plots 3 columns of data imported as if they were functions f({0, 1, 2}, {0, 1, 2})... which seems a bit dim ...(my 3 columns in excel are the x, y, z) function should be {excel col3} = f({excel col1}, {excel col2})
I must be missing something obvious - can anyone help?
lots of thanks