Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Hello,
But also we can see that if:
Why Mathcad (at least Prime 8 ) does not want to show all solutions of an equation?
Another example:
Have you tried using the modifier ALL. ?
Success!
Luc
Luc, can you try these equations in Mathcad 11 to see what MC11 gives as results?
Here you go:
If the symbolic result for y comes back as y, it means that you can use any (even complex) value for y.
Success!
Luc
Is it possible for example to restrict in Mathcad 11 the solutions for the first equation: x^2+y^2+z^2=484 at (x,y,z) only to integer numbers? In this case we should see all the triplet solutions of this equation
It is possible in Mathcad 11, to solve some Diophantic equations. The (symbolic only) function isolve (integer solve) of the Maple engine must be used:
Another one is:
But unfortunately:
Success!
Luc
We also have imaginary answers.
But how you got these results? Can you upload a Mathcad file or some images with the entire solution?
EDIT:
Mathcad found wrong solutions:
Correct observation! In the meantime you should know that Prime and especially the symbolics is buggy and not very capable.
Ib this case Prime had mixed up the two columns in the solution. The first column actually are the y-values and the second column (all zero) are the x-values.
Its quite obvious the Prime had solved for y with x=0 as otherwise you would not expect three but only two solutions!
The bug is still present in Prime 9:
Here is how it should be (Prime 6 with legacy symbolic)
But you instead may simply use something like
Even only real answers, we have infinite answers.
@Cornel wrote:
But how you got these results? Can you upload a Mathcad file or some images with the entire solution?
Maybe brute-force?
As we have all squares every value could as well be negative, too,.
Furthermore the values are exchangeable because the equation is symmetrical in x, y and z.
So in total the first rows results in 6, the second in 48=2^3*3! and the third in 24 solution triples, making up for a total of 78 solution triples with all integer values.
Of course you may also have Prime find them all
And here is the plot of the sphere with the points with all-integer coordinates
Why lookFor2 is not able to find also the solution x=0.747 and y=0?
Or does lookFor2 only look for positive integer solutions? Then is it possible to adapt this lookFor2 so that it can look also for real and complex solutions?
@Werner_E
But I see also that this program lookFor has limits. Or?
EDIT1:
And when we can't guess the somewhat exact values, what do we do then?
EDIT:
EDIT2:
@Cornel wrote:
Why lookFor2 is not able to find also the solution x=0.747 and y=0?
Or does lookFor2 only look for positive integer solutions?
Yes, it does. Look at the program! There is a for-loop for the x values which runs from 0 to end (=200) with a step width of 1 -> only integer values. Obviously it isn't testing for x=0.747.....
Furthermore y is running starting with the current value of x. So even if x=0.747... would be considered, it woil dnever be tested with y=0.
The program was provided for the one specific equation you had and took advantage of the symmetry in x,y and z in that equation. And yes, it was looking for all-integer solutions only, because otherwise we would get a vector with an infinite number of solutions for which the memory in your computer possibly would not suffice 🙂
@Cornel wrote:
Is it possible to adapt this lookFor2 so that it can look also real and complex solutions?
Seriously? Its a brute force attack! It tries ALL (integer) values within a certain interval.
You want to do the same with real and complex numbers?
Trying with ALL real numbers within an interval???? Are you aware that there is an infinite number of reals within every interval, no matter how small?? And how would you like to define an interval for complex numbers???
And then - finding the infinite number of solutions to your equation would take an infinite amount of time. Unfortunately my time is limited.
Furthermore storing most reals would require storing an infinite number of decimals requiring an infinite amount of memory for just one number. You have to solve this problem first before you go any further!
Whats wrong with choosing an value for x and calculating the corresponding y-value or doing vice versa?
In the following picture you can ALL infinite solutions for 0<x<10. Have fun!
BTW, whats the sense of all these senseless looking questions for an infinite number of ALL solutions?
Doesn't it seem strange how the solution x=1 and y=1 is not also displayed on the graph you made?
And when we will have an equation with more than 4 variables, what we will do? because this technique with choosing values for variables I think is limited at 2 or 3 variables, for which we can make 2D plot and 3D plot. And also another problem arises then: what we will do if we cannot rewrite/solve the equation in other remaining variables?
@Werner_E
So, from my understanding until now is that this program lookFor looks for natural and integer numbers only. This program also covers solutions like: 0.5, 0.6, -0.5, -1.5, etc, but does not cover solutions like 0.453, or -0.1895, etc, and real and complex solutions, right?
Also, for multiple solutions of the same values also this program faill.
@Cornel wrote:
Doesn't it seem strange how the solution x=1 and y=1 is not also displayed on the graph you made?
What are you talking about? Just because YOU used wrong scale when editing a picture(!) you think the plot is wrong?
Why don't you plot it yourself and possibly zoom in to have a closer look.
And when we will have an equation with more than 4 variables, what we will do?
I don't know what YOU would do. I would define the goal, would define what I really would need the solutions for and then go ahead trying to to find a solution which satisfies my needs.
You seem to be on the lookout for the jack of all trades, a method that can equally solve every possible problem. Good luck with it!
When you create a new thread with a new question, then please stay with that very question and don't modify it multiple times with your "yes, but what if ... " etc. Different problem -> different thread. Your threads tends to get very long, very unclear and confusing that way so that its very hard to follow. Sooner or later you give up following the thread because it becomes too tedious.
You started this thread with a semi-clear question - How to get Prime to show ALL solutions of x^2+y^2+z^2=484.
Obviously a silly question because there is an infinite number. As you showed only a few integer solutions I assumed you were only interested in them because the question now would make sense. I showed you a way to find all 78 solutions.
As so often you ignored the answer but rather followed with a series of unrelated additional questions which is annoying. And now look what has become of this thread! Terrible, isn't it?
I will try to say that I wanted to point out.
So, I will show you this with an example:
So, we can see that the solutions: x=1.5 and x=0.5 cut the x axis.
But in the case of:
In this case we cannot see that only one solution cut the x axis, so we cannot conclude that x=1 is the solution for f(x,y).
Here, my question is: how to see and make all solutions to cut the (x,y) axis? Because if the plot does not cut the x axis or (x,y) axis we cannot conclude that the value of x or the value of (x,y) is the solution of that equation.
Also, I am not sure how you got this plot:
Hi,
it would be nice if you send your questions to PTC Support, too. It's always good to ask directly at the source...
What is the procedure for this?
@Cornel wrote:
What is the procedure for this?
Hi,
you can access PTC Support only in case that you own commercial license of PTC product. Also your PTC account must be joined to PTC Customer item assigned to your company.
But if I don't open any ticket then development team/application engineers/owners/or any other person from PTC Mathcad won't care and won't be interested about the problems of their software which they sell, right?
So, even if the user of their software found a possible problem in their software, shouldn't those working at PTC Mathcad have notified themselves and taken over the problems for further investigations if any problem of their software is visible somewhere (even if the user does not open any ticket)?
@Cornel wrote:
But if I don't open any ticket then development team/application engineers/owners/or any other person from PTC Mathcad won't care and won't be interested about the problems of their software which they sell, right?
So, even if the user of their software found a possible problem in their software, shouldn't those working at PTC Mathcad have notified themselves and taken over the problems for further investigations if any problem of their software is visible somewhere (even if the user does not open any ticket)?
Hi,
I apologize but I have no interest in continuing this kind of discussion.
PTC developers usually don't scan this forum for possible bug reports. So if you don't open a ticket they may not be aware of the bug and of course can't fix it. Even the best testing board can never find all bugs in software in finite time and I don't know anything about the resources PTC puts into testing their software. You can only guess based on the overall development speed of that software ...
But I, too, got the impression over time that interestingly PTC seems not be be much interested in bug reports by users as otherwise the procedure to do so would be more obvious, more low-threshold and not limited to paying customers.
In my case I am using Mathcad Prime 8 at my company where I work. My company has a server license for Mathcad. From my understanding, if I want to send a ticket at PTC I need to write the customer number (this number I don't even know where to read it in Options -> License because I do not see this number in the License window), and/or Service Contract # (number) - this service contract number I can see it in Options -> License. I am able to see also a Host ID number in the License Window.
If I put/send somewhere these numbers or If I ask IT guys for customer number/product code, and so on, then IT guys (also my manager, and maybe other people (cyber security guy for example)) will question me further (why I need these details, where I will send these details, etc.), and I will have to give some kind of explanation for a simple equation, or whatever bug report. This process of reporting a bug seems cumbersome, it requires all sorts of details, for something that is in PTC Mathcad's best interest. Sometimes, as is the case here, these types of equations do not fall into my area of calculations at work quite like that, but I stumble upon them by chance.