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
4
votes
3 answers
Placing squares on a Cartesian plane and working out their X,Y coords based on sequence number
A bunch of guys and myself from work were trying to wrap our heads around this problem, but couldn't find a clean and efficient mathematical way to solve this problem. Here it is:
Given a standard Cartesian plane and a sequence of images (all square…

Speedy
- 467
- 1
- 6
- 16
4
votes
2 answers
Ordered cartesian product of arrays
In efficient sorted Cartesian product of 2 sorted array of integers a lazy algorithm is suggested to generate ordered cartesian products for two sorted integer arrays.
I curious to know if there is a generalisation of this algorithm to more…

mrod
- 41
- 1
4
votes
1 answer
Coding an R cartesian plane
I'm learning R. So far I've been able to represent some functions, but I don't know how to make a cartesian plane. How do you make a cartesian plane in R?
Here's my code:
num<-400
a<-scan(n=1)
x<-c(n=num)
y<-c(n=num)
for (i in 1:num)
{
x[i]=i
…

olinarr
- 261
- 3
- 13
4
votes
1 answer
Generate Cartesian Product using CUDA on GPU
I would like to know a method to generate Cartesian product using CUDA on GPU.
Simple case:
We have two lists:
A = {0.0, 0.1, 0.2} B = {0.0, 0.1, 0.2}
A x B = C = { {0.0, 0.0}, {0.0, 0.1}, {0.0, 0.2}, {0.1, 0.0}, {0.1, 0.1} ...}
How can I…

fahad
- 383
- 1
- 6
- 16
4
votes
2 answers
Finding Points in a Rectangle or Circle with mysql
I have a mysql database table with a list points with their Co-ordinates (x,y)
I want to find the list of points which fall inside the rectangle. This would have been simple had any one side of the rectangle been aligned parallel or perpendicular to…

lal_bosdi
- 163
- 3
- 13
3
votes
4 answers
Alternative to using squareform (Matlab)
At the moment i am using the pdist function in Matlab, to calculate the euclidian distances between various points in a three dimensional cartesian system. I'm doing this because i want to know which point has the smallest average distance to all…
user1218247
3
votes
3 answers
Cartesian on NULL arrays
I need a cartesian product of 6 arrays - the catch is that at any time upto 5 arrays could be null. It works great when all arrays are populated but bombs when any of the arrays are null
my arrays are something like this
MatrixArray_1[0] =…

unangelic
- 75
- 7
3
votes
2 answers
Place N Point to Minimize Distance to a List of Points
Given a list of points on a 2D plane how could one place N points on the plane in such a way that that the total sum of all distances from the list of points to the closest placed point were as small as possible? The environment is discreet and the…

Kasper Holdum
- 12,993
- 6
- 45
- 74
3
votes
2 answers
Calculate area of a object in cartesian plane
I wonder if someone can help me to find the area of a 2-D object in Cartesian plane , when we know coordinates of every points.
Eg : I want to calculate the area of a triangular. A(12,34) B(45,89) C(25,35)
I want a common algorithm to find any 2-D…

devan
- 1,643
- 8
- 37
- 62
3
votes
2 answers
convert cartesian coordinate to picturebox coordinates c#
The question I have is more of mathematics! I have some pair of values that reperesent points of a curve that I want to draw on a picturebox using fromImage(Bitmap). My picture box is sized at 500x500. I also know that the top-left corner has point…

Dumbo
- 13,555
- 54
- 184
- 288
3
votes
2 answers
How to avoid Cartesian while merging in Pandas Python
I am trying to merge 2 datasets X and Y. Dataset X has Joining Key column which has duplicate values. Dataset Y has the Joining key column and one additional column. The dataset images have been uploaded below. The problem is that I want to avoid…

Anunay Sanganal
- 33
- 4
3
votes
1 answer
Scala cats, flatMap on cartesian?
Given:
import cats.syntax.cartesian._
type M[X] = Future[Either[Error, X]]
val ma: M[A] = ???
val mb: M[B] = ???
I know I can do that:
def doStuff(a: A, b: B): C = ???
val result: M[C] = (ma |@| mb).map(doStuff)
But how do I flatMap? There's no…

Victor Basso
- 5,556
- 5
- 42
- 60
3
votes
1 answer
How to dynamically create a cartesian chart using livecharts
Can anyone tell me how to create cartesian chart dynamically in C# code?
I created an instance of cartesian chart with CartesianChart ch = new CartesianChart(); but do I need to add series, margins, etc? Basically I need to create wpf cartesian…

LBajlo
- 95
- 3
- 12
3
votes
2 answers
Decomposing rotation matrix (x,y',z'') - Cartesian angles
Decomposing rotation matrix (x,y',z'') - Cartesian angles
Im currently working with rotation matrices and I have the following problem:
Given three coordinate systems (O0,x0,y0,z0; O1,x1,y1,z1; O2,x2,y2,z2) which coincide. We rotate first the frame…

Marton
- 43
- 1
- 7
3
votes
3 answers
Most conventional method for storing XYZ data in MATLAB
I have a large amount of data to import in to MATLAB, representing location of points in cartesian space. Which of the following is the most conventional for storing and processing standard XYZ data?:
OPTION #1
Store X, Y and Z coordinates as…

Bill Cheatham
- 11,396
- 17
- 69
- 104