Community Profile

photo

Maryam Ansari


Active since 2016

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


Trying to use quad to solve this integral but keep getting error
y = @(x)((1.941-24.3*x).^2)/(2.92*(0.02408-x)*(0.01605-x)); %Using quad to calculate integral time = quad(y,0,0.0120...

8 years ago | 1 answer | 0

1

answer

Question


How can I replace my values in an iteration?
This is a code I am using to run the modified secant open method. However, I don't understand why my values are not replacing th...

8 years ago | 1 answer | 0

1

answer

Question


How to evaluate a user input function at a given point?
I'm unsure how to evaluate a given function at a given point X. Hypothetically, the user can input any function using any letter...

8 years ago | 1 answer | 0

1

answer

Question


Sub function not replacing syms variable x with input number
My code isn't finished yet, but this is what I have function findTaylorSeries = TaylorCos0(valueForX,termNum) %%...

8 years ago | 1 answer | 0

1

answer

Question


My loop has an infinite recursion, and I'm not sure how to fix it?
I'm trying to implement the Babylonian method through a while loop. When I call my function in another script file, it says I ha...

8 years ago | 1 answer | 0

1

answer

Question


I'm trying to end the program once my variable reaches a certain value. I used a conditional, but my program won't stop?
This is a part of my code. I put my if statement outside the while loop. I don't understand how I can get it to stop once "popul...

8 years ago | 1 answer | 0

1

answer

Question


I keep getting index exceeds matrix dimensions but I don't understand why. I'm trying to sum the elements in an array.
Below is a simple code. I'm creating an array m which contains all odd numbers between 1 and 52015. I'm trying to sum all the el...

8 years ago | 1 answer | 0

1

answer