This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function calculateEnergy() { | |
for (let i = 0; i < zmienne[1].length; i++) { | |
//console.log(zmienne[1][i]); | |
let sum = 0; | |
let kineticEnergy = 0; | |
let potentialEnergy = 0; | |
for (let x = 0; x < zmienne[1][i].length / 4; x++) { | |
//console.log((x * 4 + 2) + " " + (x * 4 + 1 + 2)); | |
kineticEnergy += (1 / 2) * (Math.pow(zmienne[1][i][x * 4 + 2], 2) + Math.pow(zmienne[1][i][x * 4 + 1 + 2], 2)); | |
potentialEnergy += (1 / 2) * (Math.pow(zmienne[1][i][x * 4], 2) + Math.pow(zmienne[1][i][x * 4 + 1], 2)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function g(t, y) { | |
let g = []; | |
// return [y[2], y[3], -y[0] / Math.pow(y[0] * y[0] + y[1] * y[1], 1.5)+ (mu*alpha*y[1])/mass(t), -y[1] / Math.pow(y[0] * y[0] + y[1] * y[1], 1.5)+ (mu*alpha*y[1])/mass(t)]; | |
for (let c = 0; c < particles; c++) { | |
let temp = c * 4; | |
let y1, y2, y3, y4; | |
y1 = y[2 + temp]; | |
y2 = y[3 + temp]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const WIFI_NAME = "Sienki 2.4 GHz"; | |
const WIFI_OPTIONS = { password : "password" }; | |
const wifi = require("Wifi"); | |
const http = require("http"); | |
wifi.connect(WIFI_NAME, WIFI_OPTIONS, (err)=> { | |
console.log("loading wifi"); | |
if (err) { | |
console.log("Connection error: "+err); | |
return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WARNING: Scan stop failed | |
WARNING: set rssi scan not implemeted yet | |
____ _ | |
| __|___ ___ ___ _ _|_|___ ___ | |
| __|_ -| . | _| | | | | . | | |
|____|___| _|_| |___|_|_|_|___| | |
|_| espruino.com | |
2v04 (c) 2019 G.Williams | |
Espruino is Open Source. Our work is supported | |
only by sales of official boards and donations: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* HTML */ | |
import React from 'react'; | |
import './styles/form.scss'; | |
import useSignUpForm from './hooks/customHooks.jsx'; | |
const Form = () => { | |
const {inputs, handleInputChange, handleSubmit} = useSignUpForm(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <math.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <math.h> | |
void endline(); | |
void wypisz(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstdlib> | |
#include <math.h> | |
#include <ctime> | |
#include <fstream> | |
#include <iomanip> | |
using namespace std; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstdlib> | |
#include <math.h> | |
#include <time.h> | |
using namespace std; | |
class wektor{ | |
public: | |
float x,y,r,fi; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstdlib> | |
#include <math.h> | |
#include <time.h> | |
using namespace std; | |
class wektor{ | |
public: | |
float x,y,r,fi; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include "pytanie.h" | |
using namespace std; | |
int main() | |
{ | |
Pytanie p[5]; | |
int suma=0; | |
for(int i=0; i<=4;i++){ |