Questions tagged [cartesian]

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.

245 questions
1
vote
2 answers

Transform a java object tree into a 2 dimension table

I'm faced to the following problem. I have a tree of java objects for which I have to export each field value into a CSV file. The result of the exportation must be similar to what we have in SQL left outer join (called cartesian product). Class…
cmoulliard
  • 11
  • 1
1
vote
1 answer

Convert Latitude / Longitude to Cartesian on Winkel Tripel projection

I have a Winkel Tripel map that I need to place markers over. Im given the position of the markers in Latitude/ Longitude. So I need a way to convert it to X,Y. I found some code (below), but when I tried it out, the plot of a 45º diagonal line has…
Adam Meyer
  • 1,505
  • 1
  • 19
  • 28
1
vote
1 answer

Does it cause a Cartesian join if you include a table nothing is selected from?

Would this be a Cartesian join: select dog_t.type dog_t.breed date_t.date from dog_t, cat_t, date_t where dog_t.date_key=date_t.date_key Would including the cat_t table cause a Cartesian join... because it isn't joined to anything?
tylercomp
  • 871
  • 3
  • 13
  • 25
1
vote
3 answers

How to avoid cartesian product on querying?

I'm building a web app of classified ads (it's my first professional PHP app). I have a table with the Ads and other with the images for each Ad. Each ad can have up to 4 images. It all worked fine while I was adding only one image per ad. Now, when…
1
vote
2 answers

Creating particles to follow circular paths in HTML5 canvas

Ok, so I am learning HTML5 and I wanted to update my portfolio to have a moving black hole instead of a static picture of one. I could have just taken the picture and rotated it in the canvas, but I thought it would be better if I did it all without…
Alan DeLonga
  • 454
  • 1
  • 10
  • 27
1
vote
0 answers

Minimal set of n-tuples covering a given set of n-tuples

Input: a set of M ordered tuples of n elements, where each element is a set, i.e.: (A1, A2, ..., An), where each Ai is a set Problem: combine these n-tuples together to create the minimal set of n-tuples. 2 n-tuples can be combined together iff they…
tainic
  • 21
  • 3
1
vote
3 answers

VB.NET Cartesian Coordinate System

I'd like to make a Cartesian Coordinate System in a Windows form and be able to plot (x,y) coordinates in it. How do i do this? I already did my research but unfortunately i only land on "charts" and not the Cartesian plane. Any links regarding my…
Mark A.
  • 243
  • 6
  • 21
1
vote
2 answers

Better method of finding every possible combination of the partitioned sets

I need to find every possible combination of N sets of X length with no duplicates and in a particular order, e.g. input: [["A"], ["B"], ["C"]] output: [["A","B","C"],["A","B"],["A","C"],["B","C"],["A"],["B"],["C"]] Rules: The number or size of…
Phil Moorhouse
  • 850
  • 9
  • 22
0
votes
1 answer

How to find the coordinate of final point in a parabolic motion through 3 points where 2 points are known?

Suppose an object travels in a parabola in 2D coordinate system from P to Q and then Q to R where the 2D coordinates of P and Q are known and we do not know the parabola through these 3 points. The object goes from P to Q in 1 millisecond and Q to R…
user991511
0
votes
1 answer

How to use MPI Cartesian Topology Correctly

To start off, I needed to calculate a number of sums and then find the minimum of those sums, this was done as so, using mpi: MPI_Init(&argc, &argv); MPI_Comm_size(MPI_COMM_WORLD, &numprocs); MPI_Comm_rank(MPI_COMM_WORLD, &myid); …
Bob gilong
  • 215
  • 2
  • 8
  • 17
0
votes
1 answer

Why does my JavaScript function accept three arrays, but not an array containing three arrays?

function product() { return Array.prototype.reduce.call(arguments, function(as, bs) { return [a.concat(b) for each (a in as) for each (b in bs)] },…
j.b
  • 151
  • 1
  • 7
  • 17
0
votes
1 answer

Cartesian product of dynamic array using linq c# throw outofmemory exception

I have followed this http://blogs.msdn.com/b/ericlippert/archive/2010/06/28/computing-a-cartesian-product-with-linq.aspx and created a dynamic linq query to compute cartesian product. I have 10 array item, each has 100 item in it.…
Esen
  • 973
  • 1
  • 21
  • 47
0
votes
1 answer

how to scale gps coordinate by given direction and length

I'd like to scale GPS coordinate by given direction and length. E.g. I have two points A,B. I know their GPS position (also in cartesian format) and I'd like to change the length of line AB by 1.5 where point A should be intact and B should move to…
luccio
  • 485
  • 1
  • 6
  • 24
0
votes
4 answers

MySQL View Problems

I have the following tables, users which is self explanatory and answers which contains a list of responses on a given date for a specific user. users ----- ID FIRST_NAME LAST_NAME 1 Joe Bloggs 2 Fred Sexy 3 Jo …
user151419
0
votes
0 answers

How to derive vector from horizontal coordinates

I'm trying to modify a model that starting from horizontal coordinates (https://en.wikipedia.org/wiki/Horizontal_coordinate_system) gives us the cartesian directions (or the unit vector). Having as an input: azimuth (az) and elevation (el) of a…