Interpolacja Czebyszewa

Kolorwanie:
Status:
123456789101112131415161718192021
#include <iostream>
#include <fstream>
#include <cmath>
#include <cstdlib>
using namespace std;

long double **c;
long double *x;
long double *xx;
long double *y;
void a()
{
	int n=6;
	long double sum;

	c=new long double *[n];
	for(int i=0; i<n; ++i)
		c[i]= new long double[n+1];
	
	x=new long double[n];  

Kolorwanie:
Status:
123456789101112131415161718192021
function varargout = formatka2(varargin)
% FORMATKA2 M-file for formatka2.fig
%      FORMATKA2, by itself, creates a new FORMATKA2 or raises the existing
%      singleton*.
%
%      H = FORMATKA2 returns the handle to a new FORMATKA2 or the handle to
%      the existing singleton*.
%
%      FORMATKA2('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in FORMATKA2.M with the given input arguments.
%
%      FORMATKA2('Property','Value',...) creates a new FORMATKA2 or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before formatka2_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to formatka2_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%

Kolorwanie:
Status:
123456789101112131415161718192021
function varargout = lab05_zadanie01_ujma(varargin)
% LAB05_ZADANIE01_UJMA M-file for lab05_zadanie01_ujma.fig
%      LAB05_ZADANIE01_UJMA, by itself, creates a new LAB05_ZADANIE01_UJMA or raises the existing
%      singleton*.
%
%      H = LAB05_ZADANIE01_UJMA returns the handle to a new LAB05_ZADANIE01_UJMA or the handle to
%      the existing singleton*.
%
%      LAB05_ZADANIE01_UJMA('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in LAB05_ZADANIE01_UJMA.M with the given input arguments.
%
%      LAB05_ZADANIE01_UJMA('Property','Value',...) creates a new LAB05_ZADANIE01_UJMA or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before lab05_zadanie01_ujma_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to lab05_zadanie01_ujma_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%

Kolorwanie:
Status:
123456789101112131415161718192021
 #include <iostream>
    #include <string>
    #include<fstream>
     
     
    using namespace std;
     
    class punkt
    {
      float t[2];
     
    public:
       
     
      float& operator[](int i)
      {
        if(i <0 && i !=1) throw string("Blad indeksowania");
        return t[i];
      }
      const float& operator[](int i) const

tuszek

Kolorwanie:
Status:
123456789101112131415161718192021
//import java.io.*;


public class java1
{
public static class Watek extends Thread
{
private int id;
	public Watek()
	{
		
	}
	public Watek(int i)
	{
	id=i;
	}
	public void run()
	{
		try {
			Thread.sleep( (int) (Math.random()*1000.0));

Kolorwanie:
Status:
123456789101112131415161718192021
#include <iostream>
#include "mpi.h"


using namespace std;


int main(int argc, char ** argv)
{
	int n,rank;
	MPI_Init(&argc, &argv);
	MPI_Comm_size(MPI_COMM_WORLD,&n);
	MPI_Comm_rank(MPI_COMM_WORLD,&rank);
	MPI_Group world_group,parity_group,odd_group;
	MPI_Comm parity_group_comm,odd_group_comm;
	MPI_Comm_group(MPI_COMM_WORLD,&world_group);
	int*tab1,*tab2;
	int parity,odd;
	if(n%2==0)
	{

Kolorwanie:
Status:
123456789101112131415161718192021
// LABORATORIUM 1 - ZADANIE 1
#include <mpi.h>
#include <iostream>
 
using namespace std;
 
int main (int argc, char * argv[])
{
int size;
int rank;
int wartosc;
 
MPI_Init (&argc, &argv); // inicjalizacja MPI
 
MPI_Comm_size (MPI_COMM_WORLD, &size); // pobiera do size ilosc wszystkich procesow
MPI_Comm_rank (MPI_COMM_WORLD, &rank); // pobiera do rank ilosc aktualnego procesu
if (rank == 0) // dla procesu zerowego
{
	cout << "Podaj wartosc do pobrania  ";
cin >> wartosc;

bazyk

Kolorwanie:
Status:
123456789101112131415161718192021
Wszystkie zadania jakie do tej pory znalazłem do kolosa II.

KOLOKWIUM: KONTRAHENT:
1. CREATE OR REPLACE VIEW AKTORKI AS select * from aktorzy where plec='k';
2. dodanie Aktorki jest nie możliwe ponieważ nie mamy takich uprawnień
tu jak coś zapytanie
insert into AKTORKI values('MALY','MALUTKI','K',sysdate,sysdate-30,'PL','T'); 

3. create table KONTRAHENT 
(PESEL varchar(11) constraint kon_pes_pk PRIMARY KEY , 
ADRES VARCHAR2(100), 
WIEK numeric(2), 
WSPOLPRACA_OD date,
DZIAŁ numeric(2) constraint kon_dzi_ref references dziely(ID_DZIALU));
alter table KONTRAHENT add constraint kon_pes_ch check (length(pesel)=11);
4. insert into KONTRAHENT values('12345678901','dom',21,sysdate,10); 
insert into KONTRAHENT   values('12345678901','mieszkanie',29,sysdate-2,20);

5.  insert into PRACOWNICY values (1101,'KRÓL','PREZES',8901,sysdate-100,null,4000,2000,null,10); 
alter table PRACOWNICY modify(NAZWISKO constraint pra_naz_un UNIQUE);

Kolorwanie:
Status:
123456789101112131415161718192021
function varargout = lab4b(varargin)
% LAB4B M-file for lab4b.fig
%      LAB4B, by itself, creates a new LAB4B or raises the existing
%      singleton*.
%
%      H = LAB4B returns the handle to a new LAB4B or the handle to
%      the existing singleton*.
%
%      LAB4B('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in LAB4B.M with the given input arguments.
%
%      LAB4B('Property','Value',...) creates a new LAB4B or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before lab4b_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to lab4b_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%

rejestratordzwieku1234

Kolorwanie:
Status:
function varargout = Lab5(varargin)
% LAB5 M-file for Lab5.fig
%      LAB5, by itself, creates a new LAB5 or raises the existing
%      singleton*.
%
%      H = LAB5 returns the handle to a new LAB5 or the handle to
%      the existing singleton*.
%
%      LAB5('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in LAB5.M with the given input arguments.
%
%      LAB5('Property','Value',...) creates a new LAB5 or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before Lab5_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to Lab5_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help Lab5

% Last Modified by GUIDE v2.5 18-Nov-2014 14:23:45

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @Lab5_OpeningFcn, ...
                   'gui_OutputFcn',  @Lab5_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before Lab5 is made visible.
function Lab5_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to Lab5 (see VARARGIN)

% Choose default command line output for Lab5
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes Lab5 wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = Lab5_OutputFcn(hObject, eventdata, handles)
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;



% --- Executes during object creation, after setting all properties.
function figure1_CreateFcn(hObject, eventdata, handles)
global ls;
ls=10;
global fs ;
fs = 8000;
global kanaly ;
kanaly = 1;
global bity;
bity = 8;
% hObject    handle to figure1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called



% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
global dzwiek;
global ls;
global fs;
global kanaly;
global bity;
dzwiek = wavrecord(ls * fs, fs, kanaly, bity);
axes(handles.axes1);
plot(dzwiek);
% hObject    handle to pushbutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --- Executes on button press in pushbutton7.
function pushbutton7_Callback(hObject, eventdata, handles)
global dzwiek;
global fs;
axes(handles.axes1);
plot(dzwiek);
wavplay(dzwiek,fs);
plot(t,x,t1,x1,'o');
plot(t,x,t1,x1);

% hObject    handle to pushbutton7 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --- Executes on button press in pushbutton8.
function pushbutton8_Callback(hObject, eventdata, handles)
f=10;
fs=1000;
ts=1/fs;
t=-1:ts:1;
x=sin(2*pi*f*t);
axes(handles.axes1);
plot(t,x);

% hObject    handle to pushbutton8 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --- Executes on button press in pushbutton9.
function pushbutton9_Callback(hObject, eventdata, handles)
fs =1000;
ts = 1/fs;
t=0:ts:10;
A=[100,20,3,2,1];
f=[10,50,150,200,480]';
fi=[0,-0.3,0.35,0.81,-0.5]';
x = A*sin(2*pi*f*t+fi*ones(1,length(t)));

axes(handles.axes1);
plot(t,x);

wavplay(x);
% hObject    handle to pushbutton9 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --- Executes on button press in pushbutton10.
function pushbutton10_Callback(hObject, eventdata, handles)
fs =50;
ts = 1/fs;
t=0:ts:10;
A=[100,20,3,2,1];
f=[10,50,150,200,480]';
fi=[0,-0.3,0.35,0.81,-0.5]';
x = A*sin(2*pi*f*t+fi*ones(1,length(t)));

axes(handles.axes1);
plot(t,x);

wavplay(x);
% hObject    handle to pushbutton10 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)







Copyrights 2014-2019 © Wklejaj.pl Wszelkie prawa zastrzeżone.