Plotting 2D Graph in Mathematica: y>=340 & y<340

  • Context: Mathematica 
  • Thread starter Thread starter James Wine
  • Start date Start date
  • Tags Tags
    2d Graphing
Click For Summary
SUMMARY

The discussion focuses on plotting a 2D graph in Mathematica for the conditions y ≥ 340 and y < 340. The user requests code snippets to visualize these inequalities using the Plot and Plot3D functions. The provided code includes two separate plots: one for y ≥ 340 using the expression Plot[100 (t) - 340 (t/2), {t, 0, 20}] and another for y < 340 with Plot[100 (t) - 115 (t/2), {t, 0, 20}]. Additionally, a Piecewise function is suggested for a combined 3D plot, although it does not extend y to infinity.

PREREQUISITES
  • Familiarity with Mathematica syntax and functions
  • Understanding of 2D and 3D plotting concepts
  • Knowledge of Piecewise functions in Mathematica
  • Basic grasp of mathematical inequalities
NEXT STEPS
  • Explore advanced Mathematica plotting techniques
  • Learn about the use of Piecewise functions in Mathematica
  • Investigate the implications of plotting limits in Mathematica
  • Study the behavior of functions as they approach infinity in Mathematica
USEFUL FOR

Mathematica users, data analysts, and mathematicians interested in visualizing inequalities and enhancing their graphing skills in computational software.

James Wine
Messages
8
Reaction score
0
If someone could supply the code to plot this graph in Mathematica would be awesome.

Would also be best if it checked the y's at units of t {0,1,2,3...,inf}

y >= 340
Plot[100 (t) - 340 (t/2), {t, 0, 20}]
y< 340
Plot[100 (t) - 115 (t/2) , {t, 0, 20}]
 
Last edited:
Physics news on Phys.org
Plot3D[Piecewise[{{100 t-340 t/2, y>=340}, {100 t-115 t/2, y<340}}], {t, 0, 20}, {y, 0, 1000}]

but that does not graph y to infinity.
 
Thank you, sadly I won't be able to check it until i get home. On the road working.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K