Page 1 of 7 123 ... LastLast
Results 1 to 15 of 99

Thread: Math problem I'm too stupid to solve

  1. #1
    Join Date
    23rd March 2007 - 10:24
    Bike
    Black something
    Location
    Auckland
    Posts
    491

    Math problem I'm too stupid to solve

    Mind block or something, help me out here.


    range one = 0 to 65,536
    range two = -150 to +150
    value in range one (35325) = what value in range two?


    Steps needed to work this out? they told me I needed pay attention in maths if I wanted to work in computers... I didn't believe them :S
    "And, look, the luscious and fecund fronds of the Silver Fern has given brilliant birth to a stupendous fruit! A red Hondaberry, desposited by a lesser known species of Plonker Gittus Maximus Idiotus."

  2. #2
    Join Date
    3rd July 2003 - 12:00
    Bike
    Scorpio, XL1200N
    Location
    forests of azure
    Posts
    9,398
    That question doesn't make any sense.
    kiwibiker is full of love, an disrespect.
    - mikey

  3. #3
    Join Date
    23rd March 2007 - 10:24
    Bike
    Black something
    Location
    Auckland
    Posts
    491
    Quote Originally Posted by jrandom View Post
    That question doesn't make any sense.
    Oh?

    I have a value in one range, i need it converted to its equivalent in the other range..
    "And, look, the luscious and fecund fronds of the Silver Fern has given brilliant birth to a stupendous fruit! A red Hondaberry, desposited by a lesser known species of Plonker Gittus Maximus Idiotus."

  4. #4
    Join Date
    3rd July 2003 - 12:00
    Bike
    Scorpio, XL1200N
    Location
    forests of azure
    Posts
    9,398
    First range would make more sense if it was 0 to 65535 (FFFF hex), ie, 65536 distinct values. I'd assume that that's just an error in the form of the question.

    Assuming you have no other information than that brain-dead question form, presumably written by someone who was too stupid to get a real job and has therefore ended up teaching, I'd expect that you're supposed to be using an unsigned 16-bit number to represent a range of -150 to 150 decimal.

    Which means that you divide 301 decimal (the number of values in your represented range) by 65536 decimal (the number of values in your 16-bit integer) and then multiply the result by 35325 and add the result to your minimum value.

    In other words, 12.24.

    But, really, I wouldn't have a clue what I'm on about here. Pay no attention to anything I write.

    (Edited 302 to 301. See, I told you I had no clue. And edited the result to be added to -150, etc. This whole thread is stupid.)
    kiwibiker is full of love, an disrespect.
    - mikey

  5. #5
    Join Date
    6th June 2008 - 17:24
    Bike
    The Vixen - K8 GSXR600
    Location
    Behind keybd in The Tron
    Posts
    6,518
    12.

    35325 is 53.9%of the way up the range.

    12 is 53.9% of the way through the second range.


    I hope

    Edit: I rounded to two decimal places, so JR above may be more accurate...
    . “No pleasure is worth giving up for two more years in a rest home.” Kingsley Amis

  6. #6
    Join Date
    3rd July 2003 - 12:00
    Bike
    Scorpio, XL1200N
    Location
    forests of azure
    Posts
    9,398
    Quote Originally Posted by slofox View Post
    12.
    I'd be inclined to keep some more precision in the answer. If the question's assuming that 16 bits are being used to represent the range, one can safely assume that one might as well use the precision available.

    For extra points, if I were the lecturer, I'd expect my students to point out how many significant decimal digits 16 binary digits worth of precision over that range gives.

    But lecturers are, on the whole, lazy and stupid.



    Edit: I see we're duplicating each other's thought processes in between posts...
    kiwibiker is full of love, an disrespect.
    - mikey

  7. #7
    Join Date
    20th May 2003 - 06:18
    Bike
    R6 & CRF sold, new bike is coming
    Location
    North Waikato
    Posts
    2,981

    re the question

    Quote Originally Posted by Winter View Post
    Oh?

    I have a value in one range, i need it converted to its equivalent in the other range..



    forget that, just write an essay on what you did in the weekend

    it will be more intersting, and you might get sum marks for trying


    F/F
    "Kiwi Biker, still a great place despite the mods "


    "Would crawl over broken glass before owning Suzuki"

    The only reason I only ride in the Iron man Class is I have no friends left to enter the two man events,
    my own fault really.

  8. #8
    Join Date
    3rd July 2003 - 12:00
    Bike
    Scorpio, XL1200N
    Location
    forests of azure
    Posts
    9,398
    Quote Originally Posted by Firefight View Post
    write an essay on what you did in the weekend
    Is that what they made you do at firefighting school?

    kiwibiker is full of love, an disrespect.
    - mikey

  9. #9
    Join Date
    4th September 2008 - 19:40
    Bike
    2010 Hyosung ST7
    Location
    Going through your bins
    Posts
    1,470
    Blog Entries
    8
    the answer is 3 to the power of Tuesday

  10. #10
    Join Date
    23rd March 2007 - 10:24
    Bike
    Black something
    Location
    Auckland
    Posts
    491
    Perhaps I should clarify - I'm not a student, this is not an assignment or anything.. I'm just writing some software for a little home project that I've built.

    yes I believe the answer to be 11.707 (mV if your interested), I think slowfox is the winner.. Percentages.. why does the human brain often block out the simplest answer?
    "And, look, the luscious and fecund fronds of the Silver Fern has given brilliant birth to a stupendous fruit! A red Hondaberry, desposited by a lesser known species of Plonker Gittus Maximus Idiotus."

  11. #11
    Join Date
    20th May 2003 - 06:18
    Bike
    R6 & CRF sold, new bike is coming
    Location
    North Waikato
    Posts
    2,981

    re fire school

    Quote Originally Posted by jrandom View Post
    Is that what they made you do at firefighting school?


    yeah, pretty much Dan , could not get my head round pyroformic, endothermic, exothermic reaction, Hydraulics and measuration ,chemistry ,physics, , mecahics and all that shit.

    have to say that all that shit we were taught 20+ years ago , never used it once operationally...


    F/F
    "Kiwi Biker, still a great place despite the mods "


    "Would crawl over broken glass before owning Suzuki"

    The only reason I only ride in the Iron man Class is I have no friends left to enter the two man events,
    my own fault really.

  12. #12
    Join Date
    6th June 2008 - 17:24
    Bike
    The Vixen - K8 GSXR600
    Location
    Behind keybd in The Tron
    Posts
    6,518
    Quote Originally Posted by Winter View Post
    Perhaps I should clarify - I'm not a student, this is not an assignment or anything.. I'm just writing some software for a little home project that I've built.

    yes I believe the answer to be 11.707 (mV if your interested), I think slowfox is the winner.. Percentages.. why does the human brain often block out the simplest answer?
    When I ran it to full decimal places (as far as the calc would allow), I got 11.705017089...
    . “No pleasure is worth giving up for two more years in a rest home.” Kingsley Amis

  13. #13
    Join Date
    16th December 2007 - 12:29
    Bike
    2005 Triumph Speed Four
    Location
    Havelock North
    Posts
    1,235
    Quote Originally Posted by Winter View Post
    Oh?

    I have a value in one range, i need it converted to its equivalent in the other range..
    The question is still retarded. You better make sure you capture any assumptions you make in answering the question. Like are these integer ranges or real? And what is the relationship between the ranges? Is it linear, logarithmic or something else? There are many ways that values in one range could be mapped to values in the other? It'd be inefficient but you could even do it randomly with a lookup table.

    Who's asking the question?

    Edit: Oh I see now. Back in my box
    Manawatu Tag-o-rama Website. Mowgli's score: 38


  14. #14
    Join Date
    9th October 2003 - 11:00
    Bike
    2022 BMW RnineT Pure
    Location
    yes
    Posts
    14,591
    Blog Entries
    3

    If a man is alone in the woods and there isn't a woke Hollywood around to call him racist, is he still white?



  15. #15
    Join Date
    1st July 2007 - 17:40
    Bike
    my little pony
    Location
    shoebox on middle of road
    Posts
    1,522
    Are you scaling digital to analogue output?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •