 |
|
List Archives > 
Mathcad List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[mathcad] Re: All possible pairings of two sets of complex varaibles
| [mathcad] Re: All possible pairings of two sets of complex varaibles |
|
Author: Chris Whitford
Posted: Mon, 13 Mar 2006 09:36:50 +0000
|
I'm not sure that I understand the question, but...
If you have some quantity X[i], i:=0..n, which are all distinct, and you
want to find non-ordered pairs of values, then {X[i],X[j]} is the same as
{X[j],X[i]}. All the non-duplicated pairs are given by the ranges i:=0..n,
j:=0..i.
Is this the question you were asking?
Chris
At 22:28 10/03/2006 -0600, you wrote:
>How do I create all possible pairings of two sets of complex numbers?
>
>See attached Mathcad 11 file.
>
>Thanks, Bill
+ Chris Whitford
+ Research Fellow, University of Leicester, Space Research Centre,
+ Physics and Astronomy Department, University Road, LEICESTER LE1 7RH, UK
+ Tel: +44 (0)116 252 3496, Fax: +44 (0)116 252 2464
+ email: "chw" http://www.star.le.ac.uk/
|
| [mathcad] RE: All possible pairings of two sets of complex varaibles |
|
Author: Oakley, Philip SELEX UK
Posted: Mon, 13 Mar 2006 09:37:18 +0000
|
Instead of indexing on [r,s] (matrix), index on [r*rows(Ang)+s] (vector), so that you have a vector list of all possible variations
(rows(Ang) == number of diffferent 's' values).
Then you can more easily run through all the possible selections
Philip
From: Bill Dumke "mailto:billd"
Sent: Saturday, March 11, 2006 4:29 AM
To: Mathcad Discussion List
Subject: [mathcad] All possible pairings of two sets of complex
varaibles
*** WARNING ***
This mail has originated outside your organization,
either from an external partner or the Global Internet.
Keep this in mind if you answer this message.
How do I create all possible pairings of two sets of complex numbers?
See attached Mathcad 11 file.
Thanks, Bill
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
|
| [mathcad] RE: All possible pairings of two sets of complex varaibles |
|
Author: Allen, Jonathon
Posted: Mon, 13 Mar 2006 10:49:17 -0000
|
Bill,
Attached is a file that achieves what you want (I think). It lists all
combinations, though. If you don't want duplicates, it should be a
simple matter to change the range variables in the manner described by
Chris Whitford in his post.
Regards,
Jonathon
From: Bill Dumke "mailto:billd"
Sent: 11 March 2006 04:29
To: Mathcad Discussion List
Subject: [mathcad] All possible pairings of two sets of complex
varaibles
How do I create all possible pairings of two sets of complex numbers?
See attached Mathcad 11 file.
Thanks, Bill
For further information on Renault F1 visit our web site at www.renaultf1.com.
WARNING: please ensure that you have adequate virus protection in place before you open or detach any documents attached to this email.
This e-mail may constitute privileged information. If you are not the intended recipient, you have received this confidential email and any attachments transmitted with it in error and you must not disclose, copy, circulate or in any other way use or rely on this information.
E-mails to and from the Renault F1 Team are monitored for operational reasons and in accordance with lawful business practices.
The contents of this email are those of the individual and do not necessarily represent the views of the company.
Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us.
If you have received this email in error please forward to: "is.helpdesk" quoting the sender, then delete the message and any attached documents
|
|
Attachments:
Test Matrices 031006_mod.mcd
|
| [mathcad] Re: All possible pairings of two sets of complex varaibles |
|
Author: Stephen Blank
Posted: Mon, 13 Mar 2006 09:51:09 -0500
|
Simple question:
How do you get the angle symbol that Bill Dumke uses in his file?
Thanks, Steve
Bill Dumke wrote:
> How do I create all possible pairings of two sets of complex numbers?
>
> See attached Mathcad 11 file.
>
> Thanks, Bill
>
>
> Contributions: "mathcad"
> Hosted by: Adept Scientific http://www.adeptscience.com
> List Archive: http://lists.adeptscience.co.uk/
>Would you like this to come to a different email address?
>Simply leave the mailing list (see below) and re-join by
>sending a blank email from the new address to:
>mailto: or
>If you do not want to be on the Mathcad list, simply send a
>blank email (no subject or message needed) to:
> "leave-mathcad-87206D"
>
>
|
| [mathcad] Re: All possible pairings of two sets of complex varaibles |
|
Author: Oakley, Philip SELEX UK
Posted: Mon, 13 Mar 2006 17:25:14 +0000
|
It is in quicksheets >> Extra Maths Symbols
Usually you need to either drag them into your worksheet or cut and paste.
Sometimes you can use the Literal entry ctrl+shft+K (or maybe J) for other symbol characters as well - have a look in the collaboratory.
Philip
From: Stephen Blank "mailto:sblank"
Sent: Monday, March 13, 2006 2:51 PM
To: Mathcad Discussion List
Subject: [mathcad] Re: All possible pairings of two sets of complex
varaibles
*** WARNING ***
This mail has originated outside your organization,
either from an external partner or the Global Internet.
Keep this in mind if you answer this message.
Simple question:
How do you get the angle symbol that Bill Dumke uses in his file?
Thanks, Steve
Bill Dumke wrote:
> How do I create all possible pairings of two sets of complex numbers?
>
> See attached Mathcad 11 file.
>
> Thanks, Bill
>
>
> Contributions: "mathcad"
> Hosted by: Adept Scientific http://www.adeptscience.com
> List Archive: http://lists.adeptscience.co.uk/
>Would you like this to come to a different email address?
>Simply leave the mailing list (see below) and re-join by
>sending a blank email from the new address to:
>mailto: or
>If you do not want to be on the Mathcad list, simply send a
>blank email (no subject or message needed) to:
> "leave-mathcad-87206D"
>
>
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
|
| [mathcad] RE: All possible pairings of two sets of complex varaibles |
|
Author: Bill E Dumke
Posted: Mon, 13 Mar 2006 14:26:32 -0600
|
Jonathon,
Thanks for the reply. I think your program works, but I need to get rid
of a lot of duplicates.
I cleaned up some mistakes in the original file, but then the list
server wouldn't take it, even after greatly reducing the size of the
matrix. So I give up trying to post it.
What I need is:
I want only unique pairs of complex numbers (Gamma1, Gamma2) (my
designation, not Mathcad's) of the two complex numbers Gamma1 and
Gamma2.
Gamma1 is always on the left and Gamma2 is always on the right in a
pair.
Want only one pair (Gamma1, Gamma2) when Gamma1 =Gamma2 for each unique
value of either.
One problem causing duplicates is Mathcad treats 0 at any angle as 0.
So this produces many duplicates.
Can anyone help?
Bill
|
| [mathcad] RE: All possible pairings of two sets of complex varaibles |
|
Author: Chris Whitford
Posted: Tue, 14 Mar 2006 08:58:26 +0000
|
When you are standing on the North pole, which way is South?
Chris
At 14:26 13/03/2006 -0600, you wrote:
>One problem causing duplicates is Mathcad treats 0 at any angle as 0.
>So this produces many duplicates.
+ Chris Whitford
+ Research Fellow, University of Leicester, Space Research Centre,
+ Physics and Astronomy Department, University Road, LEICESTER LE1 7RH, UK
+ Tel: +44 (0)116 252 3496, Fax: +44 (0)116 252 2464
+ email: "chw" http://www.star.le.ac.uk/
|
| [mathcad] RE: All possible pairings of two sets of complex varaibles |
|
Author: Allen, Jonathon
Posted: Tue, 14 Mar 2006 13:48:01 -0000
|
Bill,
I've modified your original file again. This now removes the surplus
zeros, and constructs a 2 column matrix of unique pairs.
Regards,
Jonathon
From: Bill E Dumke "mailto:Bill.Dumke"
Sent: 13 March 2006 20:27
To: Mathcad Discussion List
Subject: [mathcad] RE: All possible pairings of two sets of complex
varaibles
Jonathon,
Thanks for the reply. I think your program works, but I need to get rid
of a lot of duplicates.
I cleaned up some mistakes in the original file, but then the list
server wouldn't take it, even after greatly reducing the size of the
matrix. So I give up trying to post it.
What I need is:
I want only unique pairs of complex numbers (Gamma1, Gamma2) (my
designation, not Mathcad's) of the two complex numbers Gamma1 and
Gamma2.
Gamma1 is always on the left and Gamma2 is always on the right in a
pair.
Want only one pair (Gamma1, Gamma2) when Gamma1 =Gamma2 for each unique
value of either.
One problem causing duplicates is Mathcad treats 0 at any angle as 0.
So this produces many duplicates.
Can anyone help?
Bill
For further information on Renault F1 visit our web site at www.renaultf1.com.
WARNING: please ensure that you have adequate virus protection in place before you open or detach any documents attached to this email.
This e-mail may constitute privileged information. If you are not the intended recipient, you have received this confidential email and any attachments transmitted with it in error and you must not disclose, copy, circulate or in any other way use or rely on this information.
E-mails to and from the Renault F1 Team are monitored for operational reasons and in accordance with lawful business practices.
The contents of this email are those of the individual and do not necessarily represent the views of the company.
Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us.
If you have received this email in error please forward to: "is.helpdesk" quoting the sender, then delete the message and any attached documents
|
|
Attachments:
Test Matrices 031006_mod.mcd
|
| [mathcad] RE: All possible pairings of two sets of complex varaibles |
|
Author: Pergande, Albert N
Posted: Tue, 14 Mar 2006 08:40:27 -0500
|
Toward Miami. Why not?
Al Pergande
Senior Radar Engineer
Lockheed Martin Missiles and Fire Control
MP 200
5600 Sandlake Road
Orlando, Fl 32819
Voice 407-356-5169
Fax 407-356-0933
"albert.n.pergande"
for personal mail - "al"
From: Chris Whitford "mailto:chw"
Sent: Tuesday, March 14, 2006 3:58 AM
To: Mathcad Discussion List
Subject: [mathcad] RE: All possible pairings of two sets of complex
varaibles
When you are standing on the North pole, which way is South?
Chris
At 14:26 13/03/2006 -0600, you wrote:
>One problem causing duplicates is Mathcad treats 0 at any angle as 0.
>So this produces many duplicates.
+ Chris Whitford
+ Research Fellow, University of Leicester, Space Research Centre,
+ Physics and Astronomy Department, University Road, LEICESTER LE1 7RH,
+ UK
+ Tel: +44 (0)116 252 3496, Fax: +44 (0)116 252 2464
+ email: "chw" http://www.star.le.ac.uk/
|
| [mathcad] RE: All possible pairings of two sets of complex varaibles |
|
Author: Gray, Steven G
Posted: Tue, 14 Mar 2006 09:52:51 -0500
|
Surely not. Straight through your toes would be toward the center of
the Earth. Directions (north, south, east, west) are measured in a
plane tangent to the surface of the Earth.
Steve Gray
From: Oakley, Philip (SELEX) (UK) "mailto:philip.oakley"
Sent: Tuesday, March 14, 2006 8:56 AM
To: Mathcad Discussion List
Subject: [mathcad] All possible pairings of two sets of complex
varaibles
When you are standing on the North pole, How many ways are there to go
South ??
Philip
Q: When you are standing on the North pole, which way is South ?
A: Straight through your toes, surely!
From: Chris Whitford "mailto:chw"
Sent: Tuesday, March 14, 2006 8:58 AM
When you are standing on the North pole, which way is South?
Chris
At 14:26 13/03/2006 -0600, you wrote:
>One problem causing duplicates is Mathcad treats 0 at any angle as 0.
>So this produces many duplicates.
+ Chris Whitford
+ Research Fellow, University of Leicester, Space Research Centre,
+ Physics and Astronomy Department, University Road, LEICESTER LE1 7RH,
+ UK
+ Tel: +44 (0)116 252 3496, Fax: +44 (0)116 252 2464
+ email: "chw" http://www.star.le.ac.uk/
-
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
|
| [mathcad] RE: All possible pairings of two sets of complex varaibles |
|
Author: Bill E Dumke
Posted: Tue, 14 Mar 2006 09:45:48 -0600
|
Jonathon,
Thanks for the help. There appears to be a bug in the modified program
though.
If I use vlookup(0.5,Pairs(Gamma1),1) I get a certain number of rows.
If I use vlookup(0.1*j,Pairs(Gamma1),1) I get a different number of
rows.
Same results in both Mathcad Versions 11 and 13.
Bill
|
|
Attachments:
Test Matrices 031006_mod.mcd
|
| [mathcad] RE: All possible pairings of two sets of complex varaibles |
|
Author: Allen, Jonathon
Posted: Tue, 14 Mar 2006 17:15:47 -0000
|
Bill,
That's because 0.1j appears before 0.5 in the single vector list of
complex numbers Gamma1. For the unique list of pairs, the pair (0.5
0.1j) actually appears in the list as (0.1j 0.5), because of the order
of the individual numbers in the list Gamma1. If you are searching for
that pair, you will only find it if you search for 0.1j using vlookup.
If you have a set of unique pairs, you will never find all occurrences
of a particular complex number by only searching in one column! If you
count the occurrences in both columns, you will see that 0.5 and 0.1j
appear an equal number of times.
Regards,
Jonathon
From: Bill E Dumke "mailto:Bill.Dumke"
Sent: 14 March 2006 15:46
To: Mathcad Discussion List
Subject: [mathcad] RE: All possible pairings of two sets of complex
varaibles
Jonathon,
Thanks for the help. There appears to be a bug in the modified program
though.
If I use vlookup(0.5,Pairs(Gamma1),1) I get a certain number of rows.
If I use vlookup(0.1*j,Pairs(Gamma1),1) I get a different number of
rows.
Same results in both Mathcad Versions 11 and 13.
Bill
For further information on Renault F1 visit our web site at www.renaultf1.com.
WARNING: please ensure that you have adequate virus protection in place before you open or detach any documents attached to this email.
This e-mail may constitute privileged information. If you are not the intended recipient, you have received this confidential email and any attachments transmitted with it in error and you must not disclose, copy, circulate or in any other way use or rely on this information.
E-mails to and from the Renault F1 Team are monitored for operational reasons and in accordance with lawful business practices.
The contents of this email are those of the individual and do not necessarily represent the views of the company.
Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us.
If you have received this email in error please forward to: "is.helpdesk" quoting the sender, then delete the message and any attached documents
|
Previous by date: [mathcad] RE: One Question, Oakley, Philip SELEX UK
Next by date: [mathcad] RE: All possible pairings of two sets of complex varaibles, Oakley, Philip SELEX UK
Previous thread: [mathcad] All possible pairings of two sets of complex varaibles, Bill Dumke
Next thread: [mathcad] Re: All possible pairings of two sets of complex varaibles, Chris Whitford
|
|
|