esp8266 math function
esp8266 math function
Postby alexchang » Tue Jun 23, 2015 3:37 pm
想請問我們需要基本的 round() floor() ceil() 還有 sin() cos() tan() ... 等三角函數運算,在 include <math.h> 後可以編譯,但是 link 出錯。
round() floor() ceil() 可以自己寫沒問題,不過 sin() cos() 這些就有點頭痛了。
想請問這幾個數學函式要怎麼處理好呢?
round() floor() ceil() 可以自己寫沒問題,不過 sin() cos() 這些就有點頭痛了。
想請問這幾個數學函式要怎麼處理好呢?
Re: esp8266 math function
Postby Her Mary » Fri Jun 26, 2015 10:04 am
Maybe you could try this lib math, put it in \esp_iot_sdk\lib , and add it in makefile ( esp_iot_sdk\app )
-lc \
-lm \
-lgcc \
-lhal \
-lc \
-lm \
-lgcc \
-lhal \
- Attachments
-
- libm.zip
- (324.88 KiB) Downloaded 545 times
- neilwalker
- Posts: 10
- Joined: Wed Dec 20, 2017 7:17 pm
Re: esp8266 math function
Postby neilwalker » Mon Oct 19, 2020 2:07 pm
Hello guys,
I need to create the trigonometric functions for my project with a gyroscope and a celerometer. What is a proper way to do this? What is the easiest way to enable math functions on lmathlib.c? Thanks.
cheapessaywriter
Programming intern CV, Greek-UK Erasmus students category
I need to create the trigonometric functions for my project with a gyroscope and a celerometer. What is a proper way to do this? What is the easiest way to enable math functions on lmathlib.c? Thanks.
cheapessaywriter
Programming intern CV, Greek-UK Erasmus students category
Last edited by neilwalker on Mon Oct 19, 2020 2:08 pm, edited 1 time in total.
- neilwalker
- Posts: 10
- Joined: Wed Dec 20, 2017 7:17 pm
Re: esp8266 math function
Postby neilwalker » Mon Oct 19, 2020 2:08 pm
One more question. Is grytole a good choice for Lua Firmware?
Who is online
Users browsing this forum: No registered users and 5 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.