I want to smooth this function plot

  • Context: High School 
  • Thread starter Thread starter adan
  • Start date Start date
  • Tags Tags
    Function Plot Smooth
Click For Summary

Discussion Overview

The discussion revolves around techniques for smoothing a function plot defined by the formula (x+n)/(x+y+n+m), where x and y are real numbers, and n and m are natural numbers. Participants explore the implications of the function's behavior, particularly at early timesteps, and the relationship between the variables involved.

Discussion Character

  • Exploratory
  • Debate/contested
  • Technical explanation

Main Points Raised

  • Some participants express confusion regarding the labeling of the axes in the graph, particularly the use of T and its relation to the function.
  • There is a suggestion that the graph may not accurately represent the function due to the variables involved and their relationships.
  • One participant mentions that the function and graph are already smooth within their domain but seeks to slow down the initial jump in the plot.
  • Another participant requests specific functions for x(T), n(T), y(T), and m(T) to clarify how these variables change over time.
  • A participant describes the function as part of a simulation modeling human decisions, indicating that x and y represent personal experiences while n and m represent social media opinions.
  • There is a question about how to derive a function F(T) from the original formula, emphasizing the dependence on multiple variables.
  • One participant suggests simply omitting the first point of the plot if it causes issues, indicating a potential solution to the problem raised.

Areas of Agreement / Disagreement

Participants exhibit confusion and disagreement regarding the representation of the function and its graph. There is no consensus on how to effectively smooth the function or clarify the relationships between the variables.

Contextual Notes

Participants note limitations in understanding the function's behavior due to the unclear relationships between the variables and the graph's labeling. The discussion highlights the complexity of modeling the function accurately.

adan
Messages
13
Reaction score
3
Hi,
I have the following function, which is computed by: (x+n)/(x+y+n+m),
where x, y are real numbers
n, m are natural numbers
1624952645544.png


What techniques I can use to smooth the function preventing it to jump up or down at an early stage.

I would appreciate your suggestion.
Thanks
 
Physics news on Phys.org
I'm confused, your axis on the bottom is labeled as T, what does that have to do with your function?

I kind of assumed x and y were both inputs into your function, so I'm confused how you graphed it like this in general.
 
  • Like
Likes   Reactions: adan and FactChecker
Office_Shredder said:
I'm confused, your axis on the bottom is labeled as T, what does that have to do with your function?

I kind of assumed x and y were both inputs into your function, so I'm confused how you graphed it like this in general.
Thank you. T represents the time. It seems that n increases quickly in the early timesteps. I am still thinking of ways to use T in the formula.
 
adan said:
Thank you. T represents the time. It seems that n increases quickly in the early timesteps. I am still thinking of ways to use T in the formula.
You have still not told us what it is that you have graphed.
 
  • Like
Likes   Reactions: adan
The graph in post #1 makes no sense given your formula. The labels on the graph are C and T, but the formula appears to be a function of x and y, as well as m and n.

Disregarding the m and n terms for the moment, if you have ##f(x, y) = \frac x {x + y}##, the graph will be a surface in three dimensions, with a discontinuity along the line y = -x.
 
Last edited:
  • Like
Likes   Reactions: adan and jim mcnamara
The formula, as well as the graph, are already smooth within their domain.
 
  • Like
Likes   Reactions: adan
Thank you. Yes, I just want to slow down the jump at the beginning.
 
adan said:
Thank you. Yes, I just want to slow down the jump at the beginning.
So please provide the following functions, as you've already been asked:

x(T)
n(T)
y(T)
m(T)
 
  • Like
Likes   Reactions: fresh_42
berkeman said:
So please provide the following functions, as you've already been asked:

x(T)
n(T)
y(T)
m(T)
x,n,y,m are variables that are changing over time
 
  • #10
adan said:
x,n,y,m are variables
You have a plot with them! Show us the funtion that you used to generate the plot please.
 
  • #11
berkeman said:
You have a plot with them! Show us the funtion that you used to generate the plot please.
I construct the function but not fully sure if it is the best way to put all the variables together. I am building a simulation and trying to model human decisions but my model is very simple. The function is above with the question. x and y represent positive and negative personal experiences. n and m represent positive and negative opinions on social media. I assume the combination of all variables specifies the probability of consumption. Because at the beginning of the simulation, social media has 0 opinions, at step 1, multiple opinions are posted.
 
  • #12
You have plotted a function ##F\, : \, \mathbb{R}^+\longrightarrow [0,1]## which means for any value ##T\in \mathbb{R}^+## you plotted a point ##(T,F(T)).## Our question is: What is ##F##? It depends only on ##T##, so how do we get from ##\dfrac{x+n}{x+n+y+m}## to ##F(T)##?
 
  • #13
fresh_42 said:
You have plotted a function ##F\, : \, \mathbb{R}^+\longrightarrow [0,1]## which means for any value ##T\in \mathbb{R}^+## you plotted a point ##(T,F(T)).## Our question is: What is ##F##? It depends only on ##T##, so how do we get from ##\dfrac{x+n}{x+n+y+m}## to ##F(T)##?
F depends on all x,y,n,m, and T also.
 
  • #14
Sigh. Your obfuscations will get you nowhere...

Whatever. If you don't like the first point, then just don't plot it. How's that for a solution?
 
  • Like
Likes   Reactions: jim mcnamara and adan
  • #15
berkeman said:
Sigh. Your obfuscations will get you nowhere...

Whatever. If you don't like the first point, then just don't plot it. How's that for a solution?
Ok, thank you. I will look into your suggestion.
 
  • #16
Okay. Will close the thread, we seem to have the kind of answer that the OP wanted.
 
  • Like
Likes   Reactions: SammyS and berkeman

Similar threads

  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 20 ·
Replies
20
Views
5K
  • · Replies 36 ·
2
Replies
36
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K