1 | initial version |

From the docstring:

""region" - (default: None) If region is given, it must be a function of two variables. Only segments of the surface where region(x,y) returns a number >0 will be included in the plot."

Your `region`

argument is a list of four expressions. Apparently, you wish to exclude the neighborhood of`{(0, 0),(0,1),(1, 0), (1,1)}`

. I'd try:

```
region=lambda(x,z)((x^2+z^2)>1/100)*(((x-1)^2+z^2)>1/100)*(x^2+(z-1)^2)>1/100)*(((x-1)^2+(z-1)^2)>1/100)
```

which should return `True`

(i. e. 1) except in the target neighborhoods, where it should return 0.

HTH,

2 | No.2 Revision |

From the docstring:

""region" - (default: None) If region is given, it must be a function of two variables. Only segments of the surface where region(x,y) returns a number >0 will be included in the plot."

Your `region`

argument is a list of four expressions. Apparently, you wish to exclude the neighborhood of`{(0, 0),(0,1),(1, 0), (1,1)}`

. I'd try:

~~region=lambda(x,z)((x^2+z^2)>1/100)*(((x-1)^2+z^2)>1/100)*(x^2+(z-1)^2)>1/100)*(((x-1)^2+(z-1)^2)>1/100)
~~region=lambda x,z: (x^2+z^2)>1/100)*(((x-1)^2+z^2)>1/100)*(x^2+(z-1)^2)>1/100)*(((x-1)^2+(z-1)^2)>1/100)

which should return `True`

(i. e. 1) except in the target neighborhoods, where it should return 0.

HTH,

**EDIT :** lambda x, z:...`, **NOT**`

lambda(x,z)...`. My deepest apologies.

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.