Ana sayfa
/
Teknoloji
/
Given the following formula which one of the followings is the correct pre-defined function statement in C++ f=(e^d+sqrt (d))/(vert cvert ) Select one: t=[double][(exp(d)+sqrt(d)]/tabs[c]t b. f=(double)exp(edd)+sert(d)/tabs(cx c f=(double)pow[ed]+sqrt[d)/abs(c) d. f=(double)pow(de)+sqrt(d)/abs(c);

Soru

Given the following formula which one of the followings is the correct pre-defined function statement in C++
f=(e^d+sqrt (d))/(vert cvert )
Select one:
t=[double][(exp(d)+sqrt(d)]/tabs[c]t
b. f=(double)exp(edd)+sert(d)/tabs(cx
c f=(double)pow[ed]+sqrt[d)/abs(c)
d. f=(double)pow(de)+sqrt(d)/abs(c);

Given the following formula which one of the followings is the correct pre-defined function statement in C++ f=(e^d+sqrt (d))/(vert cvert ) Select one: t=[double][(exp(d)+sqrt(d)]/tabs[c]t b. f=(double)exp(edd)+sert(d)/tabs(cx c f=(double)pow[ed]+sqrt[d)/abs(c) d. f=(double)pow(de)+sqrt(d)/abs(c);

Çözüm

4.3344 Voting
avatar
Tijen
Gelişmiş · 1 yıl öğretmeni
Uzman doğrulaması

Cevap

The correct pre-defined function statement in C++ for the given formula is:<br /><br />d. $f=(double)pow(de)+sqrt(d)/abs(c);$<br /><br />Explanation: In C++, the `pow` function is used to calculate the power of a number, and the `abs` function is used to calculate the absolute value of a number. Therefore, option d correctly represents the given formula using pre-defined functions in C++.
Derecelendirmek için tıklayın: