diff --git a/core/src/main/java/it/cavallium/warppi/math/rules/dsl/patterns/UndefinedPattern.java b/core/src/main/java/it/cavallium/warppi/math/rules/dsl/patterns/UndefinedPattern.java
new file mode 100644
index 00000000..ae965de3
--- /dev/null
+++ b/core/src/main/java/it/cavallium/warppi/math/rules/dsl/patterns/UndefinedPattern.java
@@ -0,0 +1,25 @@
+package it.cavallium.warppi.math.rules.dsl.patterns;
+
+import it.cavallium.warppi.math.Function;
+import it.cavallium.warppi.math.MathContext;
+import it.cavallium.warppi.math.functions.Undefined;
+import it.cavallium.warppi.math.rules.dsl.VisitorPattern;
+
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Optional;
+
+/**
+ * Matches and generates Undefined
.
+ */
+public class UndefinedPattern extends VisitorPattern {
+ @Override
+ public Optional