Skip to content
View deadbape's full-sized avatar
🌴
Palm tree in Hawaii
🌴
Palm tree in Hawaii

Block or report deadbape

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
deadbape/README.md

Warning

Everything I publish on this profile and outside of it is a demonstration of technology for informational purposes only, and is not intended to violate the laws of your region, country, or the world. Any actions you take are done at your own risk.


#include <iostream>
#include <vector>
using namespace std;

double f(double x, double t) {
    return -0.5 * x + 2.0; 
}

vector<double> euler(double x0, double t0, double tf, double dt) {
    vector<double> x_values;
    double x = x0;
    double t = t0;

    while (t <= tf) {
        x_values.push_back(x);
        x = x + dt * f(x, t); 
        t += dt;
    }

    return x_values;
}

int main() {
    double x0 = 0.0;
    double t0 = 0.0;
    double tf = 10.0;  
    double dt = 0.1;   

    vector<double> result = euler(x0, t0, tf, dt);

    for (size_t i = 0; i < result.size(); ++i)
        cout << "t=" << i*dt << " x=" << result[i] << endl;

    return 0;
}

}

Popular repositories Loading

  1. deadbape deadbape Public

    biography.

  2. deadbape.github.io deadbape.github.io Public

    Website Github.io

    HTML

  3. PCP PCP Public

    Parse, check, and collect — a simple proxy checker and parser written in Go.

    Go

  4. masquerade masquerade Public

    Fast, simple Rust tool using AES-256-GCM and Argon2id for secure file encryption.

    Rust