Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

262
Views
Find a value of x-axis given a certain y-axis from a graph with a lineair line

Consider the following graph:

enter image description here

We have on the y-axis an edge in millimeters (mm) and on the x-axis areas in (mm²).

We know these 4 values: For an area 60 000 mm² we have an edge of 60 mm and for 960 000 mm² we have an edge of 13 mm.

How to calculate in PHP for any value of the area, for example for 80 000 mm², the value of the equivalent edge?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Assuming there is a lineair correlation between edge an area like in your graph image, code below will calculate the edge for any given area.

The variable $certainArea can be used as input for any given area.

<?php
$edge1 = 60;
$edge2 = 13;
$area1 = 60000;
$area2 = 960000;

$inclination = ($area1 - $area2) / ($edge1 - $edge2);

$certainArea = 80000;

$edgeOfCertainArea = $edge1 - (($area1 - $certainArea) / $inclination);
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!