想請問我們需要基本的 round() floor() ceil() 還有 sin() cos() tan() ... 等三角函數運算,在 include <math.h> 後可以編譯,但是 link 出錯。
round() floor() ceil() 可以自己寫沒問題,不過 sin() cos() 這些就有點頭痛了。
想請問這幾個數學函式要怎麼處理好呢?
esp8266 math function
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 851 times
Who is online
Users browsing this forum: No registered users and 99 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.