photo

engineer101


Last seen: 4년 초과 전 2021년부터 활동

Followers: 0   Following: 0

통계

MATLAB Answers

2 질문
0 답변

순위
195,322
of 300,851

평판
0

참여
2 질문
0 답변

답변 채택
50.0%

획득한 표
0

순위
 of 21,094

평판
N/A

평균 평점
0.00

참여
0 파일

다운로드 수
0

ALL TIME 다운로드 수
0

순위

of 171,294

참여
0 문제
0 답안

점수
0

배지 수
0

참여
0 게시물

참여
0 공개 채널

평균 평점

참여
0 하이라이트

평균 좋아요 수

  • Thankful Level 1

배지 보기

Feeds

보기 기준

질문


How to store an initial value in an array. x should start at 0 and y should start at 1. The step size is 0.25. I do not know how to store my initial x and y values in the array.
clear;clc syms x syms y f(x,y)= (1+2*x)*sqrt(y) h = 0.25; x_array = zeros(1,5); %array of x y_array = zeros(1,5); %a...

4년 초과 전 | 답변 수: 1 | 0

1

답변

질문


I am lost. I need to be able to show the iterations to find the root with given a and b values. Values for a and b should be user inputted. Convergence tolerance of abs(b-a) < 0.0001. fprint used to output the results from each iteration.
clc; close all; f= @(x)x.^3 + 12*x.^2 - 100*x -6; a = -1.0; b = 0.0; tol=0.0001; err=abs(b-a); if f(a)*f(b)>0 disp...

거의 5년 전 | 답변 수: 1 | 0

1

답변