Can You Plot Functions in Excel?

AI Thread Summary
Excel does not have a built-in feature to directly plot mathematical functions like 1/(x^2+4), but users can graph functions by calculating points in a tabular format. To create a graph, input the function in a cell, referencing another cell for x values. For example, in cell B1, use the formula =1/(A1^2+4) where A1 contains the initial x value. Increment x values in column A (e.g., starting from 0 and increasing by 0.05) by dragging down the fill handle. After calculating corresponding y values in column B, users can plot these columns as a line or scatter graph. This method allows for experimentation with different functions by adjusting the formulas in column A, with the graph updating automatically based on new x values.
Fritz
Messages
65
Reaction score
0
Is it possible to input a function into Excel e.g. 1/(x^2+4) and get a graph?

How do you draw graphs of functions on Excel?
 
Computer science news on Phys.org
The only way I get it to graph anything is to calculate the points tabularly to columns and then plot them e.g. as linegraph or scattergraph. I think it does not have a property to directly plot a function.
 
I believe as PerennialII.

Although I do think that it has some kind of Visual Basic programming tools available, but I've never used that feature.

The quickest way to get your graph is to write your equation in a cell in column B like so,...=1/(A1^2+4) Where A1 points to the cell A1.

Then in cell A1 put in an initial value for x, say zero maybe.

In cell A2 put in the next increment of x, say 0.05 maybe.

Then select cells A1 and A2 together. Then put your mouse pointer on the little black cross at the lower right-hand side of cell A2 and drag it down to fill down the series in the A column. That will produce values of x that are incremented by 0.05.

Then select the formula in cell B1 and fill it down so that it automatically calculates the results for each x value. Then you can plot those columns in a graph.

If you understood how to do the above. Then you can get carried away with the values of x by simply experimenting with various formulae to define the values of x in the A column. In other words. define an initial value of x in cell A1. Then in cell A2 define a function that refers to cell A1 (the cell immediately above it). Then just fill down that formula. It will generate a new x based on the value of the previous x.

It's actually pretty slick once you get the hang of it. The original equation in column B will automatically update based on the new values in column A.

Hope this wasn't too confusing.
 
^ That was great! Thank you.
 
Thread 'Urgent: Physically repair - or bypass - power button on Asus laptop'
Asus Vivobook S14 flip. The power button is wrecked. Unable to turn it on AT ALL. We can get into how and why it got wrecked later, but suffice to say a kitchen knife was involved: These buttons do want to NOT come off, not like other lappies, where they can snap in and out. And they sure don't go back on. So, in the absence of a longer-term solution that might involve a replacement, is there any way I can activate the power button, like with a paperclip or wire or something? It looks...
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Back
Top