Adept Scientific - English
The world's best software and hardware for research, science and engineering.
flag arrow
clearclear

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKdedksvnofi
Home
Products
Training
Events
 Buy Online
Downloads
Academic Discounts
Support
My Adept
International |  About Us |  Adept Scientific Blog |  Contact Us |  Press Room |  Jobs
Adept Scientific on Twitter Adept Scientific on LinkedIn


The Next Steps

• Ask us a question
• Buy Mathcad Now
• View Mathcad Pricing
•  Download a Demo
•  Request a Brochure
• Download a Brochure
• Find out about Training
• Meet Our Team
• Read our RSS Feeds

Learn More

Mathcad Home
Compare Mathcad 15
and Mathcad Prime 1.0

Version Comparison Chart
Mathcad's Mathematical
Functions

Mathcad Enterprise
Mathcad for Education
Rave Reviews
Add-ons

System Requirements

Latest Information

New Features in Mathcad
Prime 1.0

Mathcad Prime 1.0 movie
New Features in Mathcad 15
Using Mathcad and Excel
Engineering Application
Packs

Return on Investment

Service & Support

Patches & Downloads
Frequently Asked Questions
Search the Knowledge Base
Join the Discussion List
Search the List Archive

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

Search email archive for  

[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: http://www.star.le.ac.uk/
+ ------------------+


---
The Mathcad List - Discussion, Support & News
Contributions: /> 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:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

[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

-----Original Message-----
From: Bill Dumke /> 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.
********************************************************************


---
The Mathcad List - Discussion, Support & News
Contributions: /> 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:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

[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

-----Original Message-----
From: Bill Dumke
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: 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
>
>------------------------------------------------------------------------
>
>---
>The Mathcad List - Discussion, Support & News
> Contributions: /> > 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:
or
>---
>If you do not want to be on the Mathcad list, simply send a
>blank email (no subject or message needed) to:
> /> >
>

---
The Mathcad List - Discussion, Support & News
Contributions: /> 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:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

[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

-----Original Message-----
From: Stephen Blank /> 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
>
>------------------------------------------------------------------------
>
>---
>The Mathcad List - Discussion, Support & News
> Contributions: /> > 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:
or
>---
>If you do not want to be on the Mathcad list, simply send a
>blank email (no subject or message needed) to:
> /> >
>

---
The Mathcad List - Discussion, Support & News
Contributions: /> 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:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

********************************************************************
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.
********************************************************************


---
The Mathcad List - Discussion, Support & News
Contributions: /> 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:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

[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









---
The Mathcad List - Discussion, Support & News
Contributions: /> 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:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

[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: http://www.star.le.ac.uk/
+ ------------------+


---
The Mathcad List - Discussion, Support & News
Contributions: /> 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:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

[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

-----Original Message-----
From: Bill E 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: 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
/> for personal mail - />
-----Original Message-----
From: Chris Whitford
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: http://www.star.le.ac.uk/
+ ------------------+


---
The Mathcad List - Discussion, Support & News
Contributions: /> 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:
or
---
If you do not want to be on the Mathcad list, simply send a blank email
(no subject or message needed) to:
/>

---
The Mathcad List - Discussion, Support & News
Contributions: /> 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:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

[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

-----Original Message-----
From: Oakley, Philip (SELEX) (UK)
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!

-----Original Message-----
From: Chris Whitford /> 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: 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.
********************************************************************


---
The Mathcad List - Discussion, Support & News
Contributions: /> 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:
or
---
If you do not want to be on the Mathcad list, simply send a blank email
(no subject or message needed) to:
/>

---
The Mathcad List - Discussion, Support & News
Contributions: /> 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:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

[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

-----Original Message-----
From: Bill E 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: quoting the sender, then delete the message and any attached documents
---------------------------------------------------------------------

---
The Mathcad List - Discussion, Support & News
Contributions: /> 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:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

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



Ready to buy?

Mathcad 15 (with 1 year maintenance) - includes FREE Mathcad Prime
Add to shopping basket
£ 970.00
Upgrade to Mathcad 15 individual licence from v14 single user licence - includes FREE Mathcad Prime
Add to shopping basket
£ 220.00
Upgrade to Mathcad 15 individual licence from v11, v12, v13 single user licence - includes FREE Mathcad Prime
Add to shopping basket
£ 290.00

Featured Downloads

Mathcad Prime 1.0 Datasheet
Mathcad Prime 1.0 and Mathcad 15 Comparison Chart
Mathcad Prime 1.0 Demo
Mathcad or Excel?
Mathcad Customer Story: Man B&W Diesel
Mathcad Customer Story: Stork Fokker Aerospace

Latest Downloads

Application Example: Faster Physical Modelling for Mathcad users
Mathcad Case Study - Breakthrough in Water Treatment Technology
Mathcad Whitepaper - Best practices in product development: Design studies & trade-off analyses
Mathcad 15 - New Design of Experiments Demo
Mathcad Prime 2.0 Pre-Launch Interview

Latest News

Mathcad Case Study - Breakthrough in Water Treatment Technology
PTC Recognizes Adept Scientific
PTC recognises Adept Scientific’s Mathcad quality
PTC recognises Adept Scientific’s Mathcad quality
PTC launches Mathcad® Prime 1.0™
adept

Top of the Page

Popular Links: ChemDraw | ChemOffice | Data Acquisition | Data Analysis | EndNote | Maple | MapleSim | Mathcad | MathType | Quality Analyst | Reference Manager | VisSim

EU ePrivacy Directive | Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2012, Adept Scientific plc.
Site designed and maintained by Lyndon Ash

Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055