对于任意给定的方程 \(f(x) = 0\),都要求精确求解的话,非常困难甚至不可解,因此需要使用函数 \(f(x)\) 的泰勒级数的前有限项对原方程进行近似求解。 数学背景简介 牛顿迭代法求解非线性方程,是将非线性方程 \(f(x) = 0\) 线性化的一种近似方法。将 \(f(x)\) 在 \( ...
转载 2021-09-12 23:11:00
107阅读
2评论
Problem Let's write a function that does the same thing as an if statement. """ Return true_result if condition is a true value, and false_result othe ...
转载 2021-08-23 23:19:00
933阅读
2评论
Problem Let's try to write a function that does the same thing as an if statement. def if_function(condition, true_result, false_result): """ Return t ...
转载 2021-09-01 21:25:00
213阅读
2评论
Problem Let's write a function that does the same thing as an if statement. def if_function(condition, true_result, false_result): """ Return true_res ...
转载 2021-09-12 22:16:00
473阅读
2评论
Problem Define a function cycle that takes in three functions f1, f2, f3, as arguments. cycle will return another function that should take in an inte ...
转载 2021-09-03 15:55:00
136阅读
2评论
文章目录P1⭐⭐P2⭐P3 ⭐P4 ⭐⭐P5 define变量⭐P6 quote & ' ⭐⭐P7 eval_all(连续赋值)⭐P8 λ \lambda
转载 2024-03-29 11:13:38
69阅读
CS61A 课程主页: https://cs61a.org/ Assignment/Project/Lab/Discussion: 有 课程视频1: https://www.bilibili.com/video/av20538548?from=search&seid=16308128128743 ...
转载 2021-07-24 16:32:00
150阅读
2评论
[2021 spring] CS61A Project 2: CATS ...
转载 2021-06-25 23:22:00
1497阅读
2评论
# 如何实现 Python List Tree ## 引言 在 Python 中,列表(List)是一种常见的数据结构,用于存储一系列的元素。List Tree 是指在列表中嵌套其他列表,形成一个树状结构。本文将介绍如何使用 Python 实现 List Tree,以及相关的基本操作。 ## 整体流程 下面是实现 Python List Tree 的整体流程: | 步骤 | 描述 | | -
原创 2023-12-10 14:27:03
45阅读
So , I would like to share the concept of local environment. In local environment, we can use intermediate variable to describe more complex expression.It 's not end yet. I will keep update
原创 2022-12-12 19:19:22
75阅读
    Lecture 2 is all about python  variable.As i have learned python progr
原创 2022-12-12 19:19:48
44阅读
    This blog is written for the purpose of  mem
原创 2022-12-12 19:19:32
61阅读
最近呢也在面试一些互联网企业的实习岗,深感除了项目之外,计算机基础课也相当重要,比如四大件(算法
原创 2022-07-18 15:18:54
161阅读
PartA PartA1 using pointer to pointer impl 2D array int **pp = malloc(sizeof(int*)*row); for (int i =0;i < col;i++) pp[i] = malloc(sizeof(int)*col); t ...
转载 2021-10-14 08:49:00
427阅读
2评论
概述J.U.C 包是java.util.concurrent包的简写。这个包在JDK5引入,大大增强了Java的并发特性。JDK7还引入ForkJoin框架。 该包提供的能力主要包括:可重入锁,具有原子性操作属性的类,线程池执行服务,调度执行服务,增强的线程安全容器,线程关卡,信号器,ForkJoin任务执行框架等等。  可重入锁内在锁在JDK5之前,要获得同步方法,只能通过
转载 2023-12-25 08:02:06
84阅读
[2021 Spring] CS61A Discussion 11: Interpreters ...
转载 2021-07-24 23:49:00
562阅读
2评论
# 解决CS61BJava无法识别import edu的问题 ## 1. 问题描述 在开发Java程序时,有时会遇到无法识别`import edu`的问题。这个问题可能是由于缺少相应的依赖库或者配置错误导致的。本文将指导你解决这个问题,并提供具体的步骤和代码示例。 ## 2. 解决步骤 下面是解决问题的具体步骤: ### 步骤1:确认是否存在依赖问题 首先,我们需要确认是否缺少相应的依赖库
原创 2024-01-07 10:55:04
99阅读
[2021 spring] CS61A Lab 11: Interpreters ...
转载 2021-07-23 23:49:00
978阅读
2评论
我看论文太少了呜呜呜呜呜大意都能理解错(为什么“老虎机”当标题会违规= = UCB算法UCB在做EE(Exploit-Explore)的时候表现不错,但是一个不关心组织的上下文无关(context free)bandit算法,它只管埋头干活,根本不观察一下面对的都是些什么样的arm。UCB算法要解决的问题是:面对固定的K个item(广告或推荐物品),我们
CS61a 1.7 recursive function - partition ...
转载 2021-06-21 23:42:00
440阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5