photo

engineer101


Last seen: oltre 4 anni fa Attivo dal 2021

Followers: 0   Following: 0

Statistica

MATLAB Answers

2 Domande
0 Risposte

RANK
195.310
of 300.840

REPUTAZIONE
0

CONTRIBUTI
2 Domande
0 Risposte

ACCETTAZIONE DELLE RISPOSTE
50.0%

VOTI RICEVUTI
0

RANK
 of 21.092

REPUTAZIONE
N/A

VALUTAZIONE MEDIA
0.00

CONTRIBUTI
0 File

DOWNLOAD
0

ALL TIME DOWNLOAD
0

RANK

of 171.238

CONTRIBUTI
0 Problemi
0 Soluzioni

PUNTEGGIO
0

NUMERO DI BADGE
0

CONTRIBUTI
0 Post

CONTRIBUTI
0 Pubblico Canali

VALUTAZIONE MEDIA

CONTRIBUTI
0 Punti principali

NUMERO MEDIO DI LIKE

  • Thankful Level 1

Visualizza badge

Feeds

Visto da

Domanda


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...

oltre 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

quasi 5 anni fa | 1 risposta | 0

1

risposta