Forgot password?
 Register account
View 141|Reply 0

函数的参数的类型约束

[Copy link]

3158

Threads

7933

Posts

45

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 | 快速注册

$\LaTeX$ formula tutorial

Mobile version

2025-6-8 07:06 GMT+8

Powered by Discuz!

Processed in 0.014347 second(s), 21 queries

× Quick Reply To Top Edit