Plot function with changing variable
So I have a function that approximately calculates the length of the space curve 2*sin(s),3*cos(s)*exp(s),s.^2/10.
function...
5年以上 前 | 1 件の回答 | 0
1
回答
質問
Simpsons method: quad function
I've been trying to evaluate the following integral using the quad function. My output is completely blank. Not sure why.
fu...
5年以上 前 | 1 件の回答 | 0
1
回答
質問
Simpsons Rule: With for loops
Hi, So I have a question where I have to use Simpsons rule to integrate (1-x^3)*sin(x) + exp(x^2/20) between -1 and 4 with 20 in...
5年以上 前 | 2 件の回答 | 0
2
回答
質問
Displaying in terms of pi
I have the written the following code but I'm not too sure how to display the x values in terms of pi. Is that possible?Also in ...
回答済み basic monte carlo question: area of circle
Thanks both really helped a bunch.
How would I go about plotting the graph so that the hits are one colour and the rest are a...
5年以上 前 | 0
質問
basic monte carlo question: area of circle
Question: Use monte carlo method to find area of circle radius 5 inside 7x7 square.
So this is the code I've put together so ...
5年以上 前 | 4 件の回答 | 0
4
回答
質問
Function, input number, return a value
QUESTION:
Write a small function which takes as inputs; a number a and a function g(x), and returns
(a, g(a)). Note that pri...
5年以上 前 | 2 件の回答 | 0
2
回答
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.