Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

sine/cosine/whatever calculations

Featured Replies

  • Author
  • Localization

AnonBaiter, posted Sun Mar 31, 2019 4:30 pm (46266)


i just want to know if sine, cosine and other kinds of trigonometric functions can be done within this quickBMS language
  • Author
  • Localization

aluigi, posted Sun Mar 31, 2019 5:43 pm (46274)


The answer is yes and no.
The math operators are there but keep in mind that quickbms doesn't support float numbers, just integers, so I don't know if the result is exactly what you expect.
Anyway:
math VAR1 sin VAR2
math VAR1 cos VAR2
math VAR1 log VAR2
math VAR1 pow VAR2
math VAR1 sqrt VAR2
math VAR1 ceil VAR2
...
All the C math operators are supported so you have a huge choice.
  • Author
  • Localization

AnonBaiter, posted Sun Mar 31, 2019 6:20 pm (46278)


okay
what about xmath operators?
  • Author
  • Localization

aluigi, posted Sun Mar 31, 2019 6:27 pm (46280)


ah I need to correct my previous post.
It's NOT sin, it's ?sin:
math VAR1 ?sin VAR2
math VAR1 ?cos VAR2
math VAR1 ?log VAR2
math VAR1 ?pow VAR2
math VAR1 ?sqrt VAR2
math VAR1 ?ceil VAR2

In theory xmath uses the same operators of math but in practice it doesn't support these "textual" operators.
  • Author
  • Localization

AnonBaiter, posted Sun Mar 31, 2019 6:28 pm (46281)


well it's about time i take notes with this
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.