Community Tip - You can change your system assigned username to something more personal in your community settings. X
Solved! Go to Solution.
You're using the dnorm() function, which PTC marks as a 'premium function'. This means it is not available in Prime express (the free edition of Prime).
If you've set this up more than a month ago, shortly after you started using the trial version, then you've now run out of the 30-day period where the trial will give you access to all functionality of Prime.
But don't despair. The dnorm() function can fairly easily be built, and is available through:
https://community.ptc.com/t5/PTC-Mathcad/Prime-Express-A-joke/m-p/604216#M185378
Success!
Luc
PS. I see that in your 'convolution', the definition of fA_1, you multiply fB_1(x) with an integral.
The result of that integral is NOT a function of x.
So when calculating PA_1, where you essentially integrate fA_1 over the range 0 to tau.max, you might as well put the integral involving fF(x) out of that integral. See:
I suspect that is not what you intended to do, so i suggest you review your convolution formula...
It's generally not necessary to attach a screenshot, even though that should be simple to do.
More important is that you attach your Prime worksheet.
That'll surely help to solve your problem.
Success!
Luc
I can only agree with Luc and strongly recommend that you attach the worksheet.
As you just see one point, chances are that you have assigned a value to variable x somewhere above the plot. That way x can't be used for a quickplot.
Solutions would be to either
1) redefine x as a range (above the plot), like x:=-4,-3.99 .. 6
or
2) Use a different variable name for plotting, like xx. Note that you have to change every x in the plot for xx if you chose this option.
or
3) Write clear(x) somewhere above the plot in case you no longer need the value of the variable x that you assigned earlier.
Many thanks for the quick response LucMeekes and Werner!
Please find attached the worksheet.
This is basically the function fA_1 which does not plot. I once scriptted it working, but currently there are no error messages, like complex numbers or NaNs for instance - and I´m wondering if this contains any trail-version-blocked funtion 😕
Many thanks for the help, I appreciate it!
You're using the dnorm() function, which PTC marks as a 'premium function'. This means it is not available in Prime express (the free edition of Prime).
If you've set this up more than a month ago, shortly after you started using the trial version, then you've now run out of the 30-day period where the trial will give you access to all functionality of Prime.
But don't despair. The dnorm() function can fairly easily be built, and is available through:
https://community.ptc.com/t5/PTC-Mathcad/Prime-Express-A-joke/m-p/604216#M185378
Success!
Luc
PS. I see that in your 'convolution', the definition of fA_1, you multiply fB_1(x) with an integral.
The result of that integral is NOT a function of x.
So when calculating PA_1, where you essentially integrate fA_1 over the range 0 to tau.max, you might as well put the integral involving fF(x) out of that integral. See:
I suspect that is not what you intended to do, so i suggest you review your convolution formula...
Additionally to what Luc already wrote, you should be aware that you used the built-in "convolve" function in a wrong way. "convolve" will only work on vectors or matrices, not on functions. Look it up in the help.
If I deactivate your second definition of f.A_1 and active the first one (which probably doesn't do what you have in mind as this definition simply multiplies f.B_1 by the constant value 0.741) I get the plots without problems using the full version of Prime.
If you don't, the reason may be that you have exceeded the evaluation period and the software turned into the limited Express version, where dnorm is not available. If thats the case you sure should have a look at Luc's great collection of workarounds for Express!
The function is called convolve(), and it replaces several (now deprecated) functions.
Note that:
means that dnorm is a 'premium' function, so not available in Prime Express...
But it's easily defined with:
Luc
@LucMeekes wrote:
The function is called convolve(), and it replaces several (now deprecated) functions.
Yes, I erroneously called it "convolute" (is now fixed).
But the point remains that "convolve" cannot be applied to functions, as the OP had mistakenly tried.
Okay.
Since I only have Express, I've already either built or stolen the redefined "premium functions."
Attached is my Prime Express 6.0 sheet, you will note that I've already addressed most of Luc's and Werner's comments. "convolve" is not a premium function (don't ask!), so I've created two arbitrary vectors and convolved them, shown on the plot.
Alright got it, thanks everybody!
On the way to set the worksheet for the right solution, it turned out that the root cause was probably a mixture of:
- the issue with the premium functions you mentioned
- the trial version (30days) runtime activation (re-start and re-connect Mathcad requiered)
- Updating the worksheet (save and re-open with correct trial activition)
Now it works.
Thank you all very much for the comprehensive, competent and above all very fast answers!