[問題] 用@輸入函數(solved
單變數 f=@(x)x.^2+x+1;
多變數 f=@(x,y,z)x^2+x+1+y^2+y+z;
三角函數 f=@(x,y,z)x^2+sin(y)+cos(z);
指數函數 f=@(t)=5*exp(t);
but f=@(t)=exp(5*t) or f=@(t)=5*exp(t)^5 fail
f=@(t,y)=5*exp(t)^5+y fail
Error: The expression to the left of the equals sign is not a valid target
for an assignment.
then how to match exponential function?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.113.89.169
推
01/05 16:50, , 1F
01/05 16:50, 1F
→
01/05 16:50, , 2F
01/05 16:50, 2F
→
01/05 18:50, , 3F
01/05 18:50, 3F
→
01/05 18:51, , 4F
01/05 18:51, 4F