Forgot password?
 Create new account
View 117|Reply 0

函数的参数的类型约束

[Copy link]

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

hbghlyj Posted at 2023-4-3 23:23:00 |Read mode
可以套这么多 var_head?typeQ/;cond
比如
  1. f[x_Integer?EvenQ/;x>2]:=x-2
Copy the Code

然后head里面可以套 或|| 判定函数 和&&

手机版Mobile version|Leisure Math Forum

2025-4-20 22:25 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list