How to use math or build in libraries in mikroBasic for AVR

General discussion on mikroBasic PRO for AVR.
Post Reply
Author
Message
Gdragon
Posts: 4
Joined: 28 Jul 2009 11:19

How to use math or build in libraries in mikroBasic for AVR

#1 Post by Gdragon » 10 Feb 2023 22:18

Hello friends. How to use a mathematic form in my code in mikroBasic for avr... sqrt(var1) .. cos(var2). i can't see nothing examble in user manual and :(
I had many years to deal with her. Now I need to make use of the built-in Math library and there is no example in the language manual, and I wonder why?????

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: How to use math or build in libraries in mikroBasic for AVR

#2 Post by filip » 03 Mar 2023 14:29

Hi,

the sqrt and cos are part of the Trigon library, please tick the Trigon library checkbox in the Library Manager to include the library.

The examples can be found here :
\mikroBasic PRO for AVR\Examples\Other\Trigon\

Regards,
Filip.

Post Reply

Return to “mikroBasic PRO for AVR General”