Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6000377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:41:04+00:00 2026-05-23T00:41:04+00:00

I got many tables which need to be checked for specific values I will

  • 0

I got many tables which need to be checked for specific values

I will need to input specific numbers and then I need a function to check if the square block is found in the particular region, if so, what number that region got (70 or 75).

Values are:

0.00 till -12.00 (left vertical metter)
0.00 till +4.00 (upper horizontal metter)

Numbers 75 or 70 are just numbers wich are set for the whole block.

Each blue square block is 0.25 in both metters.

For example, if I input -11.00 and +2.00 square found with number 70, another example, when I put -5.00 and 2.25 square found with 75, when input -11.00 and +1.00 no go.

Anyone got idea how to do it ?

table http://img709.imageshack.us/img709/9449/imag0965.jpg

I started to write function but i ended to a point where i just don’t know how to do it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:41:05+00:00Added an answer on May 23, 2026 at 12:41 am

    You have the right idea. From the picture it looks like the functions are liner in the region you specified so you can use y = mx + b to get the equation for each line (I see at least 4). This page http://www.purplemath.com/modules/slopgrph.htm explains how to compute the line equations you need.

    Once you have the formulas for the lines, given an point(X,Y) you can use the X value of your point to compute the y values for each of your lines, and then compare your point’s Y against each of your y’s in order:

    if (Point_Y < y_first){ 
      // in region 1
    } else if(Point_Y >= y_first && Point_Y < y_second){
      // region 2
    } else if(Point_Y >= y_second && Point_Y < y_third){
      // in region 3
    } .... etc
    

    You should probably also check that the point is in the range given by the graph you have as you don’t know for certain what the graph looks like out of the range. This is easier to do:

    if(Point_Y <= y_max && Point_Y >= y_min 
        && Point_X <= x_max && Point_X >= x_min){
        // in range
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got two tables. Table B has a one to many relationship with Table
I've got two tables (articles and tags) that have a one-to-many relationship. I remember
I've got an HTML table of which I cannot depend on how many rows
I have got a table from which i need to get a piece of
I've got a one to many table with ids and traits for those users.
I've got two models, joined by a Has and Belongs To Many join table.
I've got a table containing many rows. The rows are guaranteed to have been
I've got many, many mp3 files that I would like to merge into a
When compiling the following instruction: movl 4(%ebp), 8(%ebp) I got: too many memory reference
I think this should be easy, but it's evading me. I've got a many-to-many

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.