Find the error may happened

You are testing the exp function above. Which of the following test cases would detect errors which exist in the function (hint: there is an bug)
I check the documents, but there are no information about exp(number,number)
Does anyone may tell me what is the meaning of exp(0,2) or where can find the information about that.
Thank you.

3 件のコメント

KSSV
KSSV 2022 年 4 月 10 日
The inbuilt exp function takes only one input. But what you have shown it takes two inputs, it might be your defined function.
Shuoze Xu
Shuoze Xu 2022 年 4 月 10 日
OK, thank you.
Walter Roberson
Walter Roberson 2022 年 4 月 10 日
I suspect that the part "above" defines a function exp(a,b) that is responsible for calculating a to the power b

回答 (0 件)

この質問は閉じられています。

製品

リリース

R2021b

タグ

質問済み:

2022 年 4 月 10 日

閉鎖済み:

2022 年 4 月 10 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by