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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <locale.h> | |
| int main() | |
| { | |
| int a[50],exp[50],derivada,novo=0,x,contador=0; | |
| char resposta; | |
| setlocale(LC_ALL, "Portuguese"); | |
| printf("Responda l para limite e d para derivada: \n"); |
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<math.h> | |
| using namespace std; | |
| class pol { | |
| private : | |
| int a,b,c ; | |
| float x1,x2 ; | |
| public : | |
| //Métodos Getters e Setters | |
| void seta(int x){ | |
| a=x ; |
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
| void Cobra::movimenta(int d) | |
| { | |
| int x ; | |
| aux=CoX.at(tamanho-1); | |
| auy=CoY.at(tamanho-1); | |
| mgotoxy(CoX.at(tamanho-1),CoY.at(tamanho-1)); | |
| cout<<" "; |
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
| from math import cos,sin ,radians | |
| import scipy.integrate | |
| import numpy as np | |
| def f(teta): | |
| return np.sin(2*teta)+5 | |
| I=scipy.integrate.quad(f, 5,55) | |
| print(" {}".format(I)) |
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 <math.h> | |
| using namespace std; | |
| float root(float a,float b,float k,float n)//NÃO SEI PQ N FUNCIONA RAIZES N INTEIRAS | |
| { | |
| if(pow(b,n)<a&&k==1) | |
| return root(a,b+1,k,n); |
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
| """treinamento""" | |
| Dado1 = [0.1, 0.4, 0.7] | |
| Dado2 = [0.3, 0.7, 0.2] | |
| Dado3 = [0.6, 0.9, 0.8] | |
| Dado4 = [0.5, 0.7, 0.1] | |
| amostra = [Dado1, Dado2, Dado3, Dado4] | |
| d = [1, -1, -1, 1] | |
| """treinamento""" | |
| import random |
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
| import java.util.ArrayList; | |
| import java.util.Iterator; | |
| public class Grafo { | |
| private ArrayList<ArrayList<Integer>> Lista = new ArrayList<ArrayList<Integer>>(); | |
| public ArrayList GetLista() | |
| { | |
| return Lista ; | |
| } | |
| public void AddVertice(int a) | |
| { |
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
| import java.util.ArrayList; | |
| public class Adjacencia { | |
| Vertice node ; | |
| int PesoAresta; | |
| ArrayList<Integer> Usuarios = new ArrayList(); | |
| ArrayList<String> Duracao = new ArrayList(); | |
| } |
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
| import java.util.ArrayList; | |
| public class Adjacencia { | |
| Vertice node ; | |
| int PesoAresta; | |
| ArrayList<Integer> Usuarios = new ArrayList(); | |
| ArrayList<String> Duracao = new ArrayList(); | |
| } |
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
| import java.util.*; | |
| import java.util.Scanner; | |
| public class Q4{ | |
| public static void main(String[] args) { | |
| int n ; | |
| Scanner iui=new Scanner(System.in); | |
| System.out.println("Digite n"); | |
| n = iui.nextInt(); | |
| int vetor[]=new int[n]; |
OlderNewer