-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
テストです!first commit #22
Open
Kobansa
wants to merge
8
commits into
yrglm-tech-aca:master
Choose a base branch
from
Kobansa:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<!-- | ||
To change this license header, choose License Headers in Project Properties. | ||
To change this template file, choose Tools | Templates | ||
and open the template in the editor. | ||
--> | ||
<html> | ||
<head> | ||
<title> | ||
ポストデータ | ||
</title> | ||
</head> | ||
<body> | ||
<form method="POST" action="post2.php"> | ||
人数: | ||
<input type="number" name="name" size="50"/> | ||
<input type="submit" value="人数"/> | ||
</form> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<html> | ||
<head> | ||
<title>ポストデータ</title> | ||
</head> | ||
<body> | ||
計算した人数は、<?php print $_POST['name']; ?>人 | ||
<br/> | ||
</body> | ||
</html> | ||
|
||
<?php | ||
$rank =$_POST['name']; | ||
print "計算する速度を計算する"; | ||
print "何回計算するか? 16個の数字を計算"; | ||
print "<br>"; | ||
if($rank ==1){ | ||
print $rank/1; | ||
}elseif ($rank ==2){ | ||
print $rank/1+$rank/2; | ||
}elseif ($rank ==4) { | ||
print $rank/1+$rank/2+$rank/4; | ||
}elseif ($rank ==8) { | ||
print $rank/1+$rank/2+$rank/4+$rank/8; | ||
}elseif ($rank == 16) { | ||
print $rank/1+$rank/2+$rank/4+$rank/8+$rank/16; | ||
} | ||
print "<br>"; | ||
print "回計算する"; | ||
print "速度向上率は"; | ||
print "<br>"; | ||
if($rank ==1){ | ||
print $rank/1; | ||
}elseif($rank ==2){ | ||
print ($rank/1+$rank/2)/2; | ||
}elseif($rank ==4) { | ||
print ($rank/1+$rank/2+$rank/4)/3; | ||
}elseif ($rank ==8) { | ||
print( $rank/1+$rank/2+$rank/4+$rank/8)/4; | ||
}elseif($rank ==16){ | ||
print ($rank/1+$rank/2+$rank/4+$rank/8+$rank/16)/5; | ||
} | ||
print "<br>"; | ||
|
||
|
||
|
||
|
||
|
||
/* print define_syslog_variables(); | ||
openlog('$rank', '2', LOG_PID | LOG_PERROR, LOG_LOCAL0); | ||
syslog(LOG_INFO, 'message'); | ||
closelog(); | ||
*/ | ||
|
||
//define($base,'name' ); | ||
//log2($base); | ||
|
||
/*function getLog ($base){ | ||
return log2($base); | ||
} | ||
$name = 'getLog'; | ||
$Area=$rank; | ||
print getLog; | ||
*/ | ||
//p.192 check | ||
|
||
print "<br>"; | ||
|
||
print "何枚計算しても使えるようにしたい"; | ||
print "そうすると並列化数を求める"; | ||
print "<br>"; | ||
log ($rank,2); | ||
// print"乗すると"+$rank+"になる"; | ||
|
||
print "<br>"; | ||
|
||
print log ($rank,2)+1 ; | ||
$number = log ($rank,2)+1; | ||
|
||
print "<br>"; | ||
|
||
//$numberの説明 | ||
|
||
?> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不要な改行は削除してください。