Skip to content

Commit

Permalink
微积分 & 汇编 & 更新文件结构 (#120)
Browse files Browse the repository at this point in the history
* Add files via upload

* Calculus A(1) 2020 Fall

* 汇编

* update repo structure
  • Loading branch information
c7w committed Dec 29, 2021
1 parent 2971924 commit 88300b4
Show file tree
Hide file tree
Showing 639 changed files with 75,184 additions and 75,141 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Web page: [REKCARC-TSC-UHT.readthedocs.io](https://REKCARC-TSC-UHT.readthedocs.i

如果您是清华大学学生,可移步 https://git.tsinghua.edu.cn/pkuanonym/REKCARC-TSC-UHT 进行查看并且能节约不少流量。

感谢对本项目贡献的同学:[Trinkle23897](https://github.com/trinkle23897)、[LJSthu](https://github.com/ljsthu)、[shyoshyo](https://github.com/shyoshyo)、[wuhaozhe](https://github.com/wuhaozhe)、[choumartin1234](https://github.com/choumartin1234)、[FztTony](https://github.com/FztTony/)、[VicaYang](https://github.com/VicaYang/)、[duzx16](https://github.com/duzx16/)、[zerotrac](https://github.com/zerotrac)、[gjz010](https://github.com/gjz010/)、[Recursion](https://github.com/RecursionSheep)、[linusboyle](https://github.com/linusboyle)、[namasikanam](https://github.com/namasikanam)、[JamesZhengYuyu](https://github.com/JamesZhengYuyu)、[zx1239856](https://github.com/zx1239856)、[yaoqs](https://github.com/yaoqs)、[heheda12345](https://github.com/heheda12345)、[MashPlant](https://github.com/MashPlant)、[lwpie](https://github.com/lwpie)、[cht33](https://github.com/cht33)、[chenweize1998](https://github.com/chenweize1998)、[will7101](https://github.com/will7101)、[UNIDY2002](https://github.com/UNIDY2002)、[yinhaoxuan](https://github.com/yinhaoxuan)、[zhengkw18](https://github.com/zhengkw18)、[rcy17](https://github.com/rcy17)、[prnake](https://github.com/prnake)、[qky18](https://github.com/qky18)、[JamesZFS](https://github.com/JamesZFS)、[EnjoyColin](https://github.com/EnjoyColin)、[3ToThe6](https://github.com/3ToThe6)……以及电脑前的您!
感谢对本项目贡献的同学:[Trinkle23897](https://github.com/trinkle23897)、[LJSthu](https://github.com/ljsthu)、[shyoshyo](https://github.com/shyoshyo)、[wuhaozhe](https://github.com/wuhaozhe)、[choumartin1234](https://github.com/choumartin1234)、[FztTony](https://github.com/FztTony/)、[VicaYang](https://github.com/VicaYang/)、[duzx16](https://github.com/duzx16/)、[zerotrac](https://github.com/zerotrac)、[gjz010](https://github.com/gjz010/)、[Recursion](https://github.com/RecursionSheep)、[linusboyle](https://github.com/linusboyle)、[namasikanam](https://github.com/namasikanam)、[JamesZhengYuyu](https://github.com/JamesZhengYuyu)、[zx1239856](https://github.com/zx1239856)、[yaoqs](https://github.com/yaoqs)、[heheda12345](https://github.com/heheda12345)、[MashPlant](https://github.com/MashPlant)、[lwpie](https://github.com/lwpie)、[cht33](https://github.com/cht33)、[chenweize1998](https://github.com/chenweize1998)、[will7101](https://github.com/will7101)、[UNIDY2002](https://github.com/UNIDY2002)、[yinhaoxuan](https://github.com/yinhaoxuan)、[zhengkw18](https://github.com/zhengkw18)、[rcy17](https://github.com/rcy17)、[prnake](https://github.com/prnake)、[qky18](https://github.com/qky18)、[JamesZFS](https://github.com/JamesZFS)、[EnjoyColin](https://github.com/EnjoyColin)、[3ToThe6](https://github.com/3ToThe6)、[c7w](https://github.com/c7w)……以及电脑前的您!

## 前言

Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions 大一上/思想道德与法治/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
在 2020 年,《思想道德修养与法律基础》课程更名为《思想道德与法治》课程,采用新编教材,新编慕课。本文件夹内的内容请有选择性地采用。
Original file line number Diff line number Diff line change
@@ -1,104 +1,104 @@
package lab6;
import java.io.*;

class MyException extends Exception
{
MyException() {}
MyException(String mess)
{
super(mess);
}
}

public class Lab {
/** A buffered reader attached to the keyboard. If you store this value
* in a variable kbd (say), then
*
* kbd.readLine()
*
* will prompt the reader to type a line by putting in the Interactions pane
* a field into which to type and will then yield the string of characters
* the user typed in.
*/
public static BufferedReader getKeyboard() {
// Create a link to the keyboard
return new BufferedReader(new InputStreamReader(System.in));
}



/** Prompt the reader to type a line into the interactions pane and
* return the line that the user types. */
public static String readKeyboardLine() throws IOException {
BufferedReader kyboard= getKeyboard();
String line= kyboard.readLine();
return line;
}

/** Prompt the reader to type an integer (an int) into the interactions pane
* and return the integer that they type. If the user types something that
* is not an int, then issue a message (System.out.println(...) and prompts
* again.
*/
public static int readKeyboardInt() throws IOException {
BufferedReader kyboard= getKeyboard();
while (true)
{
String line = kyboard.readLine();
try
{
int ans = Integer.parseInt(line);
return ans;
}
catch(NumberFormatException e)
{
System.out.println("您的输入不是整数,请重新输入");
}
}
//return 0;
}

/** = b**c.
Precondition: c ?0
*/
public static double exp(double b, int c)
throws MyException
{
if (c < 0)
{
//System.out.println("c<0");
throw new MyException("c<0");
}
if (c == 0)
return 1;
// c > 0

if (c%2 == 0)
return exp(b*b, c / 2);
// c is odd and > 0
return b * exp(b, c-1);
}

/** The value i such that x**i <= .00000001 but x**(i-1) is not.
Throw MyException if x <= 0 or 1 <= x.
*/
public static int approach(double x)
throws MyException
{
int i= 1; // stub; you have to complete this function
if (x <= 0)
throw new MyException("x <= 0");
else if (x >= 1)
throw new MyException("x >= 1");

double ans = 1;
for (i = 1;;i++)
{
ans = ans * x;
if (ans < 0.1)
break;
}
return i;

}
}
package lab6;
import java.io.*;

class MyException extends Exception
{
MyException() {}
MyException(String mess)
{
super(mess);
}
}

public class Lab {
/** A buffered reader attached to the keyboard. If you store this value
* in a variable kbd (say), then
*
* kbd.readLine()
*
* will prompt the reader to type a line by putting in the Interactions pane
* a field into which to type and will then yield the string of characters
* the user typed in.
*/
public static BufferedReader getKeyboard() {
// Create a link to the keyboard
return new BufferedReader(new InputStreamReader(System.in));
}



/** Prompt the reader to type a line into the interactions pane and
* return the line that the user types. */
public static String readKeyboardLine() throws IOException {
BufferedReader kyboard= getKeyboard();
String line= kyboard.readLine();
return line;
}

/** Prompt the reader to type an integer (an int) into the interactions pane
* and return the integer that they type. If the user types something that
* is not an int, then issue a message (System.out.println(...) and prompts
* again.
*/
public static int readKeyboardInt() throws IOException {
BufferedReader kyboard= getKeyboard();
while (true)
{
String line = kyboard.readLine();
try
{
int ans = Integer.parseInt(line);
return ans;
}
catch(NumberFormatException e)
{
System.out.println("您的输入不是整数,请重新输入");
}
}
//return 0;
}

/** = b**c.
Precondition: c ?0
*/
public static double exp(double b, int c)
throws MyException
{
if (c < 0)
{
//System.out.println("c<0");
throw new MyException("c<0");
}
if (c == 0)
return 1;
// c > 0

if (c%2 == 0)
return exp(b*b, c / 2);
// c is odd and > 0
return b * exp(b, c-1);
}

/** The value i such that x**i <= .00000001 but x**(i-1) is not.
Throw MyException if x <= 0 or 1 <= x.
*/
public static int approach(double x)
throws MyException
{
int i= 1; // stub; you have to complete this function
if (x <= 0)
throw new MyException("x <= 0");
else if (x >= 1)
throw new MyException("x >= 1");

double ans = 1;
for (i = 1;;i++)
{
ans = ans * x;
if (ans < 0.1)
break;
}
return i;

}
}
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
import java.io.*;

public class Lab7 {
/** = a buffered reader attached to the keyboard. If you store this value
* in a variable kbd (say), then
*
* kbd.readLine()
*
* will prompt the reader to type a line by putting in the Interactions pane
* a field into which to type and will then yield the string of characters
* the user typed in.
*/
public static BufferedReader getKeyboard() {
// Create a link to the keyboard
return new BufferedReader(new InputStreamReader(System.in));
}



/** Prompt the reader to type a line into the interactions pane and
* return the line that the user types. */
public static String readKeyboardLine() throws IOException {
BufferedReader kyboard= getKeyboard();
String line= kyboard.readLine();
return line;
}

/** Prompt the reader to type an integer (an int) into the interactions pane
* and return the integer that they type. If the user types something that
* is not an int, then issue a message (System.out.println(...) and prompts
* again.
*/
public static int readKeyboardInt() throws IOException {
BufferedReader kyboard= getKeyboard();
return 0;
}

/** = b**c.
Precondition: c ?0
*/
public static double exp(double b, int c) {
if (c == 0)
return 1;
// c > 0
if (c%2 == 0)
return exp(b*b, c / 2);
// c is odd and > 0
return b * exp(b, c-1);
}

/** = the value i such that x**i <= .00000001 but x**(i-1) is not.
Throw MyException if x <= 0 or 1 <= x.
*/
public static int approach(double x) {
int i= 1; // stub; you have to complete this function
return i;

}
}
import java.io.*;

public class Lab7 {
/** = a buffered reader attached to the keyboard. If you store this value
* in a variable kbd (say), then
*
* kbd.readLine()
*
* will prompt the reader to type a line by putting in the Interactions pane
* a field into which to type and will then yield the string of characters
* the user typed in.
*/
public static BufferedReader getKeyboard() {
// Create a link to the keyboard
return new BufferedReader(new InputStreamReader(System.in));
}



/** Prompt the reader to type a line into the interactions pane and
* return the line that the user types. */
public static String readKeyboardLine() throws IOException {
BufferedReader kyboard= getKeyboard();
String line= kyboard.readLine();
return line;
}

/** Prompt the reader to type an integer (an int) into the interactions pane
* and return the integer that they type. If the user types something that
* is not an int, then issue a message (System.out.println(...) and prompts
* again.
*/
public static int readKeyboardInt() throws IOException {
BufferedReader kyboard= getKeyboard();
return 0;
}

/** = b**c.
Precondition: c ?0
*/
public static double exp(double b, int c) {
if (c == 0)
return 1;
// c > 0
if (c%2 == 0)
return exp(b*b, c / 2);
// c is odd and > 0
return b * exp(b, c-1);
}

/** = the value i such that x**i <= .00000001 but x**(i-1) is not.
Throw MyException if x <= 0 or 1 <= x.
*/
public static int approach(double x) {
int i= 1; // stub; you have to complete this function
return i;

}
}

0 comments on commit 88300b4

Please sign in to comment.