Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

請問老師,我寫了上課的程式,也用您的直角三角形的程式,在我的電腦跑,出現math domain error的錯誤訊息,為什麼? #5

Open
Exeterwasabi opened this issue Apr 30, 2024 · 2 comments

Comments

@Exeterwasabi
Copy link

image
image

@chiayuben
Copy link

image image

程式沒有問題,應該是數值輸入有誤,三角形的對邊可以小於或等於斜邊,如果大於斜邊會算不出來(我也做過一樣的事情)。

@Exeterwasabi
Copy link
Author

Exeterwasabi commented May 1, 2024 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants