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
0
votes
0 answers

Converting Cartesian Coordinates to Lat and Lon with only x and y Cartesian Coordinates (Java)

Is there a way to convert Cartesian coordinates to Lat and Lon while only knowing the X and Y Cartesian coordinates? I'm trying to create a Java program to do they conversions and after some reading I currently have the following where R = the…
0
votes
0 answers

How convert GPS Latitude/longitude/altitude to Cartesian coordinates?

I get my robot's location from an IMU's GPS sensor. It outputs the robot's location in latitude, longitude, and altitude format. Latitude and longitude are in degrees and altitude is in meters and it is elevation from sea level. I want to convert it…
CVDE
  • 393
  • 3
  • 19
0
votes
1 answer

How to convert old x87 assembly code to extended asm (with "=u" and "=t" constraints) to convert spherical coordinates

I have this old code to transform spherical to Cartesian 3D coordinates : TDVector3D Cartesian3D_asm(const double &Theta, const double &Phi) { TDVector3D V; __asm__ { mov eax,[ebp+0x0C] mov edx,[ebp+0x10] fld qword ptr…
0
votes
0 answers

Is there a way to solve this problem on a 2d Cartesian graph?

Suppose you have a set of 10 different shapes in 2d, where each is defined by its vertices(meeting points).You are expected to find the closest shape to the starting point(0,0). Find the distance between the starting point(0,0) and the closest…
Sifat
  • 11
  • 1
0
votes
0 answers

ExtJS add latest store value of cartesian chart to the y-Axis

I'm dealing with the latest ExtJS version and currently trying to add the latest value of a cartesian chart store to the y-Axis see image Is there an easy / built in way to achieve this? Also is there a way to offset the label values since they get…
drfraenk
  • 1
  • 2
0
votes
1 answer

PostgresSQL avoiding cartesian product

I am trying to add a column to an existing table. Basically this is how it looks: Table 1 value1 value2 value3 value4 Tab2 max1 min1 output1 max2 min2 output2 max3 min3 outpu3 So in function on the interval (min, max) in which value is present,…
cobdmg
  • 49
  • 6
0
votes
0 answers

Is there a way to perform a cross-join for multiple rows X multiple columns (more than 3) using vba?

Is there a way to perform a cross-join for multiple rows X multiple columns using VBA? (No limit to the number of columns & rows. The range should be selectable) I cannot find the same solution to build up the cross-join of multiple columns by VBA…
Toshi
  • 45
  • 7
0
votes
1 answer

I want to add a table or table row to a cartesian join and refresh. But I don't want the order of the rows to change

I have joined 8 tables with a cartesian join in excel. I want to record business rules against each row. I anticipate we may discover that we need a new variable and need to add another table or another row to an existing table and refresh the…
0
votes
2 answers

How do I find the x and y values in an array where the array is divided equally in a cartesian orientation?

What I'm trying to do is simply find and define an x and y coordinate for the highest number in the array. For example, 50000 would output: x = 2, y = 2. Is there an easy way to accomplish this? I created this code below: data_array = [[0, 1, 2, 3,…
ceilowens
  • 1
  • 2
0
votes
1 answer

JavaScript: Math.atan2 issue

Let's say I have an arbitrary polar coordinate: let pc = {theta: 3.1544967, radius: 0.8339594}; Need to do some Cartesian math with that and transform it back to polar one. However, I have noticed that if I just do this code: const pc = {theta:…
0
votes
1 answer

Find the distance between 2 series of points in Pandas, Fastest Iteration

Have 2 sets of data, 1 which contains coordinates of fixed location called locations And a secondary table of vehicle movements called movements What would be the fastest way to iterate through both tables to find if any of the movements are…
Darren Teo
  • 41
  • 1
0
votes
0 answers

I need to avoid a cartesian product in Informix SQL

I'm getting a cartesian product that I don't want in a complex Informix SQL query. I know which of the tables is causing the problem, but I can't figure out a way around the cartesian product. The query I refer to is very long, but I am going to…
0
votes
1 answer

How to create a eventually fair but biased distribution of Cartesian product of sets

Say I have X or 3 sets of different sizes. So 3×4×5 I want to generate a probability distribution of the Cartesian of these sets that eventually and is guaranteed to cover every item. Which based on my other answer I can generate the Nth Cartesian…
0
votes
1 answer

Combine two one dimensional arrays to create a cartesian table

I hope you are good. I am struggling to create a compatible data type in javascript to display a cartesian like table where we have a vertical and a horizontal header. Basically I have 3 one dimensional arrays where the first two are the table…
floralb
  • 11
  • 3
0
votes
0 answers

How to solve error messsage about neo4j :This query builds a cartesian product

When I try to execute the comnand, but appear some waining: This query builds a cartesian product between disconnected patterns. If a part of a query contains multiple disconnected patterns, this will build a cartesian product between all those…