photo

Nauryzbay


Last seen: 1 year ago Active since 2023

Followers: 0   Following: 0

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


How to solve a boundary value problem x"+x'=1, x(0)=1, x(1)=2 , with an impulse condition x(i/3+)=2*x(i/3)+1, x'(i/3+)=3*x'(i/3)-1;
function impulsbound %x"+x'=1, x(0)=1, x(i/3+)=2*x(i/3)+1, x'(i/3+)=3*x'(i/3)-1, i=1,2. x(1)=2; format long clear all t=lins...

1 year ago | 1 answer | 0

1

answer

Question


How to plot the first derivative of solution?
function Piecewise1111copy x1=1; u=3; global gamma1; gamma1=x1; teta=zeros(3,1); teta(1)=0; for i=1:3 teta(i+1)=2*i...

1 year ago | 2 answers | 0

2

answers

Question


When I run my code, I keep getting this error: "Undefined function or variable 'y'."
close all;clc tspan = [0 1]; y0(1)=2; y0(2)=1; y0(3)=3; source = 0; tol = 1e-3;%Критерии допуска для определения наилучшей...

1 year ago | 2 answers | 0

2

answers

Question


When I run my code, I keep getting this error: "The following error occurred converting from sym to double: Unable to convert expression into double array."
clc; clear; close; x=linspace(0,1,100); solinit = bvpinit(x,[2 4]); y = bvp4c(@ode2, @bc2, solinit);% ВЫЗЫВАЕМ СОЛВЕР BVP4C...

1 year ago | 1 answer | 0

1

answer