-4
$\begingroup$

z=x/100 if{(x<100) and y<10000}

= 1 otherwise...

I dont know how to plot a conditional function

$\endgroup$

closed as off-topic by José Carlos Santos, Jam, Stefan4024, Namaste, Key Flex Aug 7 '18 at 11:38

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question is missing context or other details: Please improve the question by providing additional context, which ideally includes your thoughts on the problem and any attempts you have made to solve it. This information helps others identify where you have difficulties and helps them write answers appropriate to your experience level." – Stefan4024, Namaste, Key Flex
If this question can be reworded to fit the rules in the help center, please edit the question.

  • $\begingroup$ Why would you put a constraint on $y$ if it doesn't even appear in the equation? $\endgroup$ – Jam Aug 7 '18 at 9:53
  • $\begingroup$ I understand it doesnt make sense, but let me assure you, the problem I am dealing with has that flavour. What I am trying to do is define z=1 whenever y>10000 irrespective of the value of x. $\endgroup$ – Vk1 Aug 7 '18 at 10:00
  • $\begingroup$ Right. Why would you want to plot this in WA? $\endgroup$ – Jam Aug 7 '18 at 10:06
  • $\begingroup$ I think it's pretty easy to imagine what $f(x,y)=\begin{cases}\frac{x}{100}&x<100,y<10^4\\1&\text{else}\end{cases}$ looks like. Just try it in a $3$d grapher like Geogebra. geogebra.org/3d?lang=en-GB $\endgroup$ – Jam Aug 7 '18 at 10:08
  • $\begingroup$ You should get a figure a bit like this. imgur.com/dlnYAOX $\endgroup$ – Jam Aug 7 '18 at 10:22
1
$\begingroup$

Use this script

ContourPlot3D[ z == If[x < 100 && y < 10000, x/100, 1], {x, -1000, 1000}, {y, 0, 10500}, {z, -10, 10}] enter image description here

$\endgroup$
  • 1
    $\begingroup$ In Mathematica maybe, but it doesn't work for me in WA... (Link.) $\endgroup$ – Hans Lundmark Aug 7 '18 at 11:20
  • $\begingroup$ It doesnt seem to work in wolfram alpha, but Thanks for the image. I had trouble imagining what it looked like and now its clear. $\endgroup$ – Vk1 Aug 8 '18 at 12:56

Not the answer you're looking for? Browse other questions tagged or ask your own question.