Don't use this tag. If you have questions about cartesian products (e.g. SQL, Spark, Datatables, heterogeneous tuples), use `cartesian-product` tag. If you have questions about planar geometry / 3D-graphics, use `cartesian-coordinates` tag.
Questions tagged [cartesian]
245 questions
0
votes
3 answers
Sum two columns from two tables without cartesian
I searched for a while but nothing I find fixes my problem...
I have two tables: earnings, expenses
I have the columns:
earnings.amount
earnings.date
expenses.amount
expenses.date
I want to sum the amount of all my earnings and show them by year…

Haddock-san
- 745
- 1
- 12
- 25
0
votes
1 answer
Maple: How to convert Cylindrical coordinates to Cartesian coordinates?
We get some expression in Cylindrical coordinates (r, ϕ, z ) like : expr := r*z^2*sin((1/3)*ϕ) we need to convert it into Cartesian coordinates and than back to Cylindrical coordinates. How to do such thing?
So I found something like…

Rella
- 65,003
- 109
- 363
- 636
0
votes
1 answer
Is there a Python module or built-in function that will help me write this program?
I'm working on an exercise at the Exercism website, and I'm a little stuck on how to begin this one. I don't want any detailed answers; I'm just looking for a push in the right direction for how to begin. When given a set of (x, y) coordinates, I'd…

John Salerno
- 83
- 2
- 7
0
votes
1 answer
Remove rows with same order in a column value obtained from Cartesian product / Cross join.If a row value is AB and other value is BA. I need only AB
how to remove rows with same order in a column value obtained from Cartesian product / Cross join. For e.g., if a row with column value is AB and other row is BA. I need to have only 1 row AB.? Please note that I am doing this for a huge dataset…

shravan
- 15
- 1
- 3
0
votes
1 answer
Code for converting Cartesian (x,y,z) to Cylindrical (ρ,θ,z) coordinates 2D/3D
Is there any code in C++ to converts from Cartesian (x,y,z) to Cylindrical (ρ,θ,z) coordinates in 2-dimensions and 3-dimensions!!
Thanks

MAY
- 13
- 2
0
votes
1 answer
Generating cartesian product java
I'm trying to load test a backend server and I'm parsing some config into a Label object. I'm trying to generate Cartesian product of Label objects which would be a Metric object.
Label {
String name;
String labe;
}
I have a List
- >…

Shrenik Gala
- 283
- 1
- 7
- 19
0
votes
0 answers
Cartesian product for number of sets using Excel VBA
Is there a way to create a macro in excel to generate all possible combinations (Cartesian product) of a number of sets (more than 8), each containing a dynamic number of words (up to 60 words).
eg.
if I have 4 sets as below:
Set 1: A1 …

MZee
- 1
- 1
0
votes
1 answer
Convert Polar Image to a Cartesian Image
I am attempting to convert an image in polar coordinates (axes are angle x radius) to an image in cartesian coordinates (axes are x and y).
This is simple enough in matlab using pcolor() but the issue is that I must do this in a mex file (c++…

Dan Snyder
- 1,483
- 7
- 20
- 29
0
votes
1 answer
Comparing opencv lineartoPolar() transformation in python
My objective is to convert a 2D power spectrum (below) from cartesian to polar coordinates.
imshow(np.log10(psd2shift),cmap=cm.jet)
There are several posts on stackoverflow on how to do just that such as this link. And so I believe my code is…

icypy
- 3,062
- 5
- 25
- 27
0
votes
0 answers
How to display 4 quadrants on Cartesian graph? mathematica
How can I get Mathematica to display all 4 quadrants, not just the area where my data exists. I'm building an application to illustrate how matrix transformations affect a graphed shape and I want all 4 quadrants displayed for every step. I tried…

Monica Harrison
- 1
- 2
0
votes
2 answers
Cartesian Product of two lists in F# using recursion and helper function
I am trying to get the cartesian product of two lists and I am getting an error that says that my function productHelp is not defined. I am not too sure how to solve this without having a helper function and I am not even sure if this would even…

Shinji-san
- 971
- 4
- 14
- 31
0
votes
2 answers
Create interactive cartesian grid in django
I have a question regarding a platform I'm developing called e-cidadania (GPL). One of the applications will be something like a blackboard where you can put messages. I've been requested to do it like a cartesian grid (p.e. x = good/bad, y =…

CastleDweller
- 8,204
- 13
- 49
- 69
0
votes
0 answers
Getting a Cartesian Similar result from the list in JAVA
I have A List of Map of List for Eg. as Below
List
- > pageData = new ArrayList<>();
List

Garry Steve
- 129
- 2
- 11
0
votes
0 answers
Get combinations with condition Scala|Spark
I have an RDD tagIDs with the following content:
(name_1, Set_1),
...
(name_t, Set_t),
...
I want to create pairs of pairs (name_i, Set_i), (name_j, Set_j), but only if Set_i.intersect(Set_j).size > 0
The only way I managed to do that is:
…

elfinorr
- 189
- 3
- 12
0
votes
1 answer
How to expand across cartesion product of columns in Spark DataFrame like in pandas?
For example, one dumb way of doing this in pandas is like
d = df.set_index(['date', 'a']).unstack('a').stack('a', drop_na=False)
d.shape, df.shape
(10, 4), (30, 4)
if you had 3 unique dates across 10 unique values of 'a' (expands to 10 x…

mathtick
- 6,487
- 13
- 56
- 101