Quantcast
Channel: PTC Community : Discussion List - PTC Mathcad
Viewing all 2936 articles
Browse latest View live

simplify program if possible

$
0
0

dear ptc community - thanks to mike (num 1) i believe am starting a discussion right - please see attachment and see if someone will comment on it - thanks joe


Plotting a simple straight line in 3D

$
0
0

Hello...

 

I can't believe I have to ask...meaning that I can't figure this out, but here goes.

 

I have been trying to create a mock-up plot in 3D (x, y & z), and each thing I try I end up having to abandon. I don't need to spend a lot of time on this, so rather than try to make something work, I just keep 'dumbing it down' just for the sake of getting an end-result.

 

So, I have worked my way down the [difficulty] scale to where I am now, and I still can't accomplish what I need.....oh well.

 

What I am not trying to get done is to plot a simple straight line from the origin (0,0,0) out to some value.....which its value is immaterial to my goal.

 

If you plot a straight line of the form: y = mx + b, where m = 1 and b = 0, you get a nice line. I want the same thing, but in x, y & z space. For the life of me I can't get it. I think I've been at it too long.

 

Can anyone give a hamnd please?

 

Thank you

Variable undefined and placement

$
0
0

I'm new to MathCAD and am having some hopefully easily solved issues. I'm attempting to recreate a document, and the first thing is a quadratic equation. The variables in it, a, b, and c are all to be defined in lines after the equation, which of course causes a definition error. Is there a way to fix this? Also, the variable x causes an error, needing to be defined itself.

Old Solve() Function?

$
0
0

In past versions of MathCAD, there was a solve() function.  Since this is used in some of MathCAD's original Mechanical Engineering worksheets, what replaces this function in version 14 so I can eliminate "undefined variable" errors in some old spreadsheets?

Page numbering

$
0
0

Am I missing something, or are page numbers not able to be offset by the user in PRIME (e.g. start numbering at '4' instead of default '1')?  I typically use Mathcad as a support to other reports and need to pre-number the pages when combinnig the report (e.g putting together multiple Adobe files that are pre-numbered). 

 

Text editing needs to include the ability to use sub- and super- scripts.

 

Is there a plan to allow labeling of plots without resorting to manually inserting text-blocks?

 

I understand changing solution schemes and equation formulations ... but I need to be able to easily create quality reports and text editing and plotting are important aspects.  Otherwise I could just use EXCEL ...

numerical integration

$
0
0

I can`t to make numerical integration of function Pko(t) and Pno(t) but Pno(t) exists analytically

Is There a Drop Down Menu on Mathcad Prime 3.0?

$
0
0

Is there a drop down menu on mathcad prime 3.0? We are updating our Mathcad files from Mathcad 15 to Mathcad Prime 3.0 but we are having some issues with the drop down menus.

Also, the regular mathcad (i.e. Mathcad 15) switched to Mathcad Prime now? or are they two different programs with different options?

 

Thank you in advance.

cspline with oscilating data

$
0
0

I have a curve I'm trying to fit with cspline and interp (see the attached calculation).  Unfortunately, my y axis data oscilates so I had to write my function in terms of the x axis and use csort to make everything work.  I was able to get a function M(phi) which works, but what I really need is phi(M) of an integral I need to perform on phi.

 

So, what I need to do is rewrite my function in the opposite terms (I'm not sure what the math terminology would be here). Any suggestions?  What is the proper term for what I'm trying to do? 

 

Thanks.


T-stub method

$
0
0

How can I find Alpha if "m", "m_2" and "e" are known. (I'm using Mathcad prime 3)

 

Capture.PNG

Capture.PNG

Setting up a MathCAD 13.1.3.0 Licence Server

$
0
0

Hi,

 

I have had to move the licence server for MathCAD 13.1.3.0 to a new server.

 

I have a reconfigured licence that should work on the server but I do not know how to install the licence server itself.

 

I was advised to download the MathCAD 15 licence server installation, which I did, and then added the licence.

 

However, the vendor daemon is now 'ptc_d', whereas my MathCAD clients are looking for a vendor daemon of 'mathsoft'.

 

Is there a setting I can change on my MathCAD clients to look for the ptc_d vendor daemon instead of the mathsoft one. Or is there something I can do on the licence server side.

 

Any help much appreciated.

 

Cheers,

Nick

Mathcad 15 slow in M020 and M030

$
0
0

I've been running Mathcad 15 M010 for the past couple years.  I've been a using Mathcad since 1995.  It runs fine with my worksheets with the occasional crash.  I saw there was an update in December to M030 so I installed it yesterday.  It runs extremely slow just opening and calculating a worksheet.  I uninstalled and went back to M010 and it works fine.  M010 will run through the caclulations in about 10-15 seconds whereas M020 or M030 take over 2-3 minutes

 

This is not one particular file.  I tried multiple different projects and it nets the same results.  I use scripting (drop down pick lists) and reference files in all my worksheets.

 

About 6 months ago, I did the same experiment with M020 and M010.  M020 was slow as well.  This was on my other PC with Windows 7 x64.  The recent test was on Windows 8.1 x64. 

 

For now I'm back to M010 in Windows 8.1....no issues with 8.1 except for when I print to adobe PDF, the filename has some Asian characters in the filename.  I attached a screenshot of this issue.  I can live with this.  This didn't occur in W7

 

Any idea what may be causing the slow down between updates?

Math Cad to Creo

$
0
0

We had success loading the wing Math Cad file into Creo and were able to draw the cfdrootsection and cfdtipsection in creo and did Thru Point.  We have not been able to find the features needed to create our solid geometry as the instruction in the Math Cad worksheet described.

X Y plots on MathCAD 15.0

$
0
0

Hi,

 

Can someone explain how to plot the graphs of

 

y=x^4

and y^2= 24x

 

on the same plot to enable me to work out the enclosed area between the two curves.

 

Thanks in advance

 

Matt

Re: PTC Mathcad Matrix to C++ Code

$
0
0

Documents created by PTC staff don't allow for comments - so this is an attempt to comment on a recent document posted.

 

The file recently posted by Brent Edmonds (http://communities.ptc.com/docs/DOC-4875) contains two routines, gen_cplusplus() and WRITEFILE().

The first one takes a matrix consisting of numbers (no error checking) and creates a vector of strings similar to what you would type if you define and initialize an array in C(++). And this routine has some flaws in my opinion.

The second routine is, as is also stated in the enclosed word doc, the real gem. Its courtesy by Magnus Eklund from PTC and writes a matrix with arbitrary elements to a file and if a matrix element is a string it is written without the double quotes. Its sure a valuable utility routine for the collection.

 

Nevertheless some comments to this second routine first:

  • Please change the name from WRITEFILE() to something else, as WRITEFILE() is the name of a built in routine. In the attached file I included it renamed to WRITEMATRIX().
  • In case the matrix element is a number, it is converted to a string with num2str(). Then the routines looks if there is a comma (,) in the resulting string and if one is found, it is replaced by a decimal point. This should never be necessary, as Mathcads num2str never produces a decimal comma, whatever the decimal character in the Windows setting may be. I should know as we use the decimal comma over here and I often had problems with scripted components for Mathcad becuase of this, as the used VBS routine would consider the decimal character in the Windows settings.
    Anybody knowing why this replacement is done? Am I missing something?

 

Concerning the gen_cplusplus() routine, its a fairly basic one and somewhat long with a lot of if's for its purpose

  • as an "official" utility routine it should be ORIGIN aware; as its written now, ORIGIN=0 is assumed
  • I think the output should also include the dimensioning of the array, which can easyly be done, and when we are at it, why not create a complete definition with "float data [..." in front as well. Its easier to edit than to add/complete
  • The routine makes use of a strange "feature" that allows the usage of an undefined variable in a program if its used in a loop. At best its bad programming style but I think I would call this "feature" a bug in Prime (haven't tried if it works in Mathcad, too) - see below.
    undefined.png
    In my opinion test1 should also throw the error because of the undefined variable!
    EDIT: Just tested it and this behaviour is already present in Mathcad 15, too!

 

Find attached as simpler and bit more complete replacement for gen_cplusplus(), I called it mat2CPP() (also without error checking).

 

But as the goal is just the creation of the file an all-in-one routine like the attached WriteCPP() should do the job pretty well.

writecpp.png

Functions

$
0
0

Quick question!

 

if cot(theta)= value , what function do i use in mathcad to find "theta". acot doesn't seem to work.

 

Thanks!


Calculating Pile Angle from a reference Pile Within a Pile Group

$
0
0

Good Afternoon Community,

 

Would anybody please help me with attached file. My goal is to calculate the spacing and the angle in a 3 X 3 pile group assuming each pile as a reference point, my spacing is correct but my angles are wrong. In the attached work sheet the correct angle zeta is shown as disable and the incorrect values are shown beside it. And also I would like to calculate the settlement of the pile group assuming the vertical force carried by the jth pile, please see the equations below the attached file and see if you could help.  Can anybody see what I'm doing wrong?

 

Regards,

 

Boyer

Help - Simple Mathcad issues in solving a given problem

$
0
0

I am particularly new to Mathcad, and I was assigned a couple of problems in a Thermodynamics course I am taking. I would be most glad if somebody could please help me with a few issues I am having. They seem pretty simple and they must, in fact, be pretty easy to fix. I just couldn't really do it in spite of much effort, I'm guessing because of the little I have with Mathcad.

 

There are two (very short) files, both with problems:

 

12.6

In this problem, the function "minimize" won't run, stating that "the variable is undefined".

 

 

12.20

The function "find" won't run, also stating that "the variable is undefined.

 

 

So, it isn't much, but I could really use a hand here.

 

Thanks

Overview tab is missing a lot of threads!?

$
0
0

Is this as it should be? Its not a Mathcad question but deals with this community software.

 

When I look at the tab "Overview"at "What is Everone Doing?" I see much less threads than when I chose the tab "Discussions".

As I had understood the "Overview" tab should show me all recent activities in the Mathcad community and in all its subfolders. Chosing "Discussions" will show me just the discussions in 'Mathcad' but not in the subfolders.

Why are the discussions which I see in the group 'Mathcad' not shown in the "Overview"??

 

See attached two screenshots of what I see. Six or seven threads in Mathcad are younger than the documents posted by Mr. Lusk but they don't show up in the overview. Both screenshots were made nearly immedeatly on after the other, so there is not much time delay.

Temporarily Disabling the Interpreter in Prime 2.0?

$
0
0

Hi,

 

It would be interesting to have a response from PTC on this: Is there a way in mcad prime 2.0 to temporarily disable the "interpreter" (for lack of a better term?) in order to facilitate the speedy editing of a ~200-300 line program? So far, prime 2.0 has been EXTREMELY & annoyingly SLOW, reminiscent of the dial-up TSO terminals of yore when it comes to editing a program.

 

And no, I'm not referring to the ability to disable calculations or regions. And no, v15 is not an option for my particular program.

 

Thanks for your consideration!

 

Brad

Given/Find command, variable not defined

$
0
0

Hi all,

 

I'm trying to solve a system of equations of motion using the given and find commands in Matlab.

However I get a variable undifined error on the find command and I cannot figure out why.

See the attached worksheet for my attempt.

 

Can anyone figure out what I'm doing wrong?

Viewing all 2936 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>