第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

c語言能直接輸入三角函數(shù)符號(hào)嘛 比如sin cos?

c語言能直接輸入三角函數(shù)符號(hào)嘛 比如sin cos?

C
鳳凰求蠱 2019-02-13 15:11:13
c語言能直接輸入三角函數(shù)符號(hào)嘛 比如sin cos
查看完整描述

2 回答

?
揚(yáng)帆大魚

TA貢獻(xiàn)1799條經(jīng)驗(yàn) 獲得超9個(gè)贊

可以,是標(biāo)準(zhǔn)C函數(shù),語法如下
#include <math.h>

double sin(double x);
double cos(double x);

詳細(xì)描述:

NAME
sin, sinf, sinl - sine function

SYNOPSIS
#include <math.h>

double sin(double x);
float sinf(float x);
long double sinl(long double x);

Link with -lm.

DESCRIPTION
The sin() function returns the sine of x, where x is given in radians.

RETURN VALUE
The sin() function returns a value between -1 and 1.

CONFORMING TO
SVr4, 4.3BSD, C89. The float and long double variants are C99 requirements.

SEE ALSO
acos(3), asin(3), atan(3), atan2(3), csin(3), cos(3), tan(3)



查看完整回答
反對(duì) 回復(fù) 2019-02-27
?
慕斯709654

TA貢獻(xiàn)1840條經(jīng)驗(yàn) 獲得超5個(gè)贊

#include "stdio.h"
#include "math.h"
void main ()
{
float i=1.0;
printf("%f",sin(i));

}
當(dāng)然可以



查看完整回答
反對(duì) 回復(fù) 2019-02-27
  • 2 回答
  • 0 關(guān)注
  • 2079 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)