Программы на C++. Форум разработчиков
1710226242
Гость
Я хочу решить дифференциальное уравнение
[code]idy/dx=x
[/code]
using Euler method in C++, but i am not able to put i(iota) in the front of the equation.
I tried using [code]#include[/code],[code] std::complex z = 1i;[/code] and then writing [code]y[j+1]=y[j]+h*imag(z)*x[j][/code], but this doesn't work. Please help. Also, note that the solution to this contains i(iota).
Источник: [url]https://stackoverflow.com/questions/78145095/how-to-call-imaginary-number-i-in-an-equation-in-c[/url]