Forgot password
 Register account
View 141|Reply 0

函数的参数的类型约束

[Copy link]

3226

Threads

7843

Posts

52

Reputation

Show all posts

hbghlyj posted 2023-4-3 23:23 |Read mode
可以套这么多 var_head?typeQ/;cond
比如
  1. f[x_Integer?EvenQ/;x>2]:=x-2
Copy the Code
然后head里面可以套 或|| 判定函数 和&&

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-23 09:57 GMT+8

Powered by Discuz!

Processed in 0.011988 seconds, 22 queries