Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

258
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda