Author Topic: Math on the HELP Menu  (Read 3152 times)

0 Members and 1 Guest are viewing this topic.

Offline Dimster

  • Forum Resident
  • Posts: 500
    • View Profile
Math on the HELP Menu
« on: April 08, 2019, 11:37:30 am »
I'm not sure how to work this Help feature. Selecting Math I get a box inviting a math equation but how do I actually provide that equation? I couldn't find anything on the wiki - i have tried to highlight the equation in my algorythm but so far not so good - 

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Re: Math on the HELP Menu
« Reply #1 on: April 08, 2019, 11:48:18 am »
You just go and type it in. Its very simplistic.
Granted after becoming radioactive I only have a half-life!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Math on the HELP Menu
« Reply #2 on: April 08, 2019, 12:14:46 pm »
I think part of the problem is that it is asking for an equation like: area = 2*pi*r

but what it really works on is a numeric expression with 0 variables like: 2*3.1415*6

and it doesn't do MOD or even tolerate a space, from my tests.

Still could be quite handy, thanks for heads up of this option, I hadn't noticed (or forgot it was there).
« Last Edit: April 08, 2019, 12:16:58 pm by bplus »

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Math on the HELP Menu
« Reply #3 on: April 08, 2019, 12:24:39 pm »
It should work with MOD, and spaces too.  It’s basically a single line math evaluator like CONST uses, so any functionality you have in CONST, you should have in the MATH help pop up.  ;)
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Math on the HELP Menu
« Reply #4 on: April 08, 2019, 12:29:17 pm »
It should work with MOD, and spaces too.  It’s basically a single line math evaluator like CONST uses, so any functionality you have in CONST, you should have in the MATH help pop up.  ;)

OK MOD does work IF! I don't put a space between it and last number.

As soon as I hit space, it evaluates.

Offline Dimster

  • Forum Resident
  • Posts: 500
    • View Profile
Re: Math on the HELP Menu
« Reply #5 on: April 08, 2019, 01:06:58 pm »
Thank you all - I down loaded the new version 1.3 and playing with all the options. This was the first time trying that Math help. When I encountered the (OK) and the curser flashing under it, I thought the answer to the question "Give me a Math Equation" was OK. So I kept selecting OK and getting no where. Like being in the forest and can't find a tree. - I'm sure Cobalt is still laughing but hey, some things can get too dummied down for serious programmers.

FellippeHeitor

  • Guest
Re: Math on the HELP Menu
« Reply #6 on: April 08, 2019, 01:24:43 pm »
Quote
I down loaded the new version 1.3 and playing with all the options. This was the first time trying that Math help.

Notice that it's not a new feature in v1.3. The math box has been around since 1.0 I think.

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Re: Math on the HELP Menu
« Reply #7 on: April 08, 2019, 11:42:19 pm »
Thank you all - I down loaded the new version 1.3 and playing with all the options. This was the first time trying that Math help. When I encountered the (OK) and the curser flashing under it, I thought the answer to the question "Give me a Math Equation" was OK. So I kept selecting OK and getting no where. Like being in the forest and can't find a tree. - I'm sure Cobalt is still laughing but hey, some things can get too dummied down for serious programmers.

oh just a little :D
no not really, took me a few minutes the first time to realize just what to do. I think it could use a lighter colored box or a cursor to let you know.
Granted after becoming radioactive I only have a half-life!