How to solve a differential equation with MATLAB
i have a problem. that is : y"^2 + 2*y'+ 3*y = sin(x), y'(0)=0, y(0)=1 I want solve this problem with MATLAB but I can't. Can you help me ? ...
i have a problem. that is : y"^2 + 2*y'+ 3*y = sin(x), y'(0)=0, y(0)=1 I want solve this problem with MATLAB but I can't. Can you help me ? ...
Hello everyone, Yesterday, i've posted a question on some tips doing this Remote Client-Server Application in C#. So now, our group was able to create one. The problem is, we cannot think of ways on how we can test it since we are currently on different locations for our weekend break. If anyone of you has any idea on how we can test i...
Hi, I need to solve below using java 6 api. The inputs are start time , end time and a given time t in a given time zone . All Times must be in 24 hr format = HH:mm The program must return values x such that: f(t)= 0 , for start<=t<=end = x , for t outside start and end where x is the interval in seconds fo...
Hi everyone! I created a program that calculates loans, but it doesn't go under the guidelines of what my professor asked. Can show me the correct alteration. Source Code would be awesome and time saving, but you don't have to. Heres the problem: Write a program that lets the user enter the loan amount and the loan period in number of ...
I am not getting this assignment about finding the IP address of the machine. I need help understanding the logic of this code. Our college lab uses proxy server; will this code work on a computer without proxy? #include <stdio.h> /* stderr, stdout */ #include <netdb.h> /* hostent struct, gethostbyname() *...
#include<stdio.h> #include<conio.h> #include<math.h> void main(void) { int a,b,c; float d,d2; printf(" Enter a,b and c:"); scanf("%d %d %d",&a,&b,&c); d=b*b-4*a*c; if(d<0) { printf("(%d+i%d)/%d",(-b,sqrt(d),2*a)); printf("(%d-i%d)/%d",(-b,sqrt(d),2*a)); } else { printf("(%d...
I have to write an argument parser, it is passed in as a string ala {a, b, c} delimiter is comma with a space after it, but it can be escaped with a pipe "|" before it. So I was thinking of writing a regex like /[^\|], / to split by, and then removing all the escape characters afterwards. But when using this it will split by the characte...
I need to add a value and input it directly into an array using TextIO. I know that if I was using Scanner I would use the in.nextDouble() function, but how would I do it using TextIO? TextIO.put("Enter credit hours:"); creditHour[sem][grd]+=in.nextDouble(); //I have to use TextIO here. Thanks in advance, ...
user have to input 10 numbers and the program should read the largest number.the largest should be done in function..i can do the looping make user input 10 numbers but i don't know how to do the function to determine the largest..please help me!!! here is my code.. #include <stdio.h> int main () { int largest; double total=0; int x;...
write a program to take entry of 'essay' from the user. this essay will contain all special charasters and quotation marks and all other characters. wap to calculate total number of words , total number of sentences and total number of paragraphs. also calculate total number of special characters? ...
Possible Duplicate: Finding sorted sub-sequences in a permutation Given an array A which holds a permutation of 1,2,...,n. A sub-block A[i..j] of an array A is called a valid block if all the numbers appearing in A[i..j] are consecutive numbers (may not be in order). Given an array A= [ 7 3 4 1 2 6 5 8] the valid blocks ar...
I am working on a project that i must traverse a maze using the left-hand rule and based upon the intersections the program comes upon i need to create a node to connect to a graph that I will then determine the shortest path. The goal is for the program to run through the maze then close out the program and read from a file that contain...
say i want to ask the many users to give me their ID number and their name, than save it. and than i can call any ID and get the name. can someone tell me how i can do that by making a class and using the _ _ init _ _ method? ...
How we can Download a HTML Page using JAVA?? ...
hmm i got a homework, its 2 hours and i still have no clue on it :| like this $sessions['lefthand'] = 'apple'; $sessions['righthand'] = ''; $sessions['head'] = 'hat'; $sessions['cloth'] = ''; $sessions['pants'] = ''; // here is the homework function CheckSession('lefthand,righthand,head,cloth,pants'); we have some string "lefthand,r...
hi, i am confused on why it doest not split the string? my array of string exp does not contain anything when i debug it is the split wrong?what i am trying to do is to split a very simple expression like 1+2+3 and then parse the values, doing a calculator. EDIT hi, why i am splitting on each character is because i am doing a calculator...
Hi I need a sample application of the following scenario 1) IOCP TCP Server capable of accepting request 2) client make request and send receive operation 3) SERVER close the connection 4) client open another socket for connection and do send receive operation With this example i want to see how a client can open a connection and after ...
I'm trying to create a simple picture viewer that will allow the user to click a button and then select an image from the file system and have that image displayed in a JLabel. I'm not familiar with picture viewing, but I've done file referencing before. ...
Ok so here is the assignment: Create a simple picture viewer that will allow the user to click a button and then select an image from the file system and have that image displayed in a JLabel. Here is the code I have: import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import javax.swing.Imag...
I got this code.. now the challenging part is my prof asked me to make a program which asks the user to input an uppercased word. The problem is, she wants the program to automatically transform each inputted letter in uppercase even if the user's keyboard is not in capslock mode.. so i don't know what's really wrong with my program......