duangsuse::Echo
晚安熬夜人。
https://duangsuse-valid-projects.github.io/Share/HTMLs/dim2/
愿意给我提供 #math 帮助的朋友可以私信联系我,不论是之前有没有交流的。
项目还有 x 轴的 legend 和 y 轴、 y legend 没实现,整体绘制用的是 h-h*(y/yBounds),效果好一点。
我真的累了,这个弄完了可能又要休息两天吧,积压的两个重写 两个既有 估计又要搁着了。
愿意给我提供 #math 帮助的朋友可以私信联系我,不论是之前有没有交流的。
项目还有 x 轴的 legend 和 y 轴、 y legend 没实现,整体绘制用的是 h-h*(y/yBounds),效果好一点。
我真的累了,这个弄完了可能又要休息两天吧,积压的两个重写 两个既有 估计又要搁着了。
http://www.gifsmos.com/
https://github.com/njchensl/Desmos/blob/master/src/me/nanjingchj/desmos/Window.kt #kotlin
https://github.com/galbar07/Desmos #java #plt #math
https://github.com/ihatecsv/betterthandesmos
https://github.com/njchensl/Desmos/blob/master/src/me/nanjingchj/desmos/Window.kt #kotlin
https://github.com/galbar07/Desmos #java #plt #math
https://github.com/ihatecsv/betterthandesmos
GitHub
njchensl/Desmos
Desmos clone (graphing calculator). Contribute to njchensl/Desmos development by creating an account on GitHub.
duangsuse:
不知道 JS 在 ES6 之前是怎么解决这个问题的,JS 也没有隐式上下文
没有隐含的 this 对象就不能靠设计模式解决这类问题
依云:
js 有 with 啊
duangsuse:
是语法?这么说有人用了?
依云:
是。没见过有人用。
#DontKnow #JS https://blog.csdn.net/zwkkkk1/article/details/79725934
不知道 JS 在 ES6 之前是怎么解决这个问题的,JS 也没有隐式上下文
没有隐含的 this 对象就不能靠设计模式解决这类问题
依云:
js 有 with 啊
duangsuse:
是语法?这么说有人用了?
依云:
是。没见过有人用。
#DontKnow #JS https://blog.csdn.net/zwkkkk1/article/details/79725934
blog.csdn.net
JavaScript中 with的用法_zwkkkk1的博客-CSDN博客_js with
说起js中的with关键字,很多小伙伴们的第一印象可能就是with关键字的作用在于改变作用域,然后最关键的一点是不推荐使用with关键字。听到不推荐with关键字后,我们很多人都会忽略掉with关键字,认为不要去管它用它就可以了。但是有时候,我们在看一些代码或者面试题的时候,其中会有with关键字的相关问题,很多坑是你没接触过的,所以还是有必要说说with这一个关键字。 with的基本用...
Forwarded from dnaugsuz
对了,昨天折腾的一个 TS 项目,你们有人 初中数学 比较好吗
有没有兴趣帮我想想 y 轴怎么画之类的(草
有没有兴趣帮我想想 y 轴怎么画之类的(草
Forwarded from dnaugsuz
你们真没有做过绘制的人嘛
噢对,这里是 Python 群…… 基本都是后端或者框架使用者
能不能问一下绘制算法是
x 轴(y=0) 的绘制点 y 如何定义
y 轴的又如何定义……
就连化 x 轴(y=y_func(vy+yzero) 其中 vy是y offset yzero 是y=0时z ,的方法都是我试出来的
而且中途还修了一个低级数据语义bug
哭死了
噢对,这里是 Python 群…… 基本都是后端或者框架使用者
能不能问一下绘制算法是
ys.forEach((y,x) => g.lineTo(x, h-h* y/yBounds )) 的情况下x 轴(y=0) 的绘制点 y 如何定义
y 轴的又如何定义……
就连化 x 轴(y=y_func(vy+yzero) 其中 vy是y offset yzero 是y=0时z ,的方法都是我试出来的
而且中途还修了一个低级数据语义bug
哭死了
duangsuse::Echo
#js #cg #tool #drawing http://paperjs.org/ #doc https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API 草 https://ptsjs.org/ 、 http://scrawl.rikweb.org.uk/ 、 https://zimjs.com/art.html ; https://www.createjs.com/demos/easeljs/filters #game #tools htt…
https://github.com/sxyu/nivalis 草,这是标准实现... 支持看 intersection 和 max/min value ,但没有 desmos 的 click&follow y-value 功能
dnaugsuz
你们真没有做过绘制的人嘛 噢对,这里是 Python 群…… 基本都是后端或者框架使用者 能不能问一下绘制算法是 ys.forEach((y,x) => g.lineTo(x, h-h* y/yBounds )) 的情况下 x 轴(y=0) 的绘制点 y 如何定义 y 轴的又如何定义…… 就连化 x 轴(y=y_func(vy+yzero) 其中 vy是y offset yzero 是y=0时z ,的方法都是我试出来的 而且中途还修了一个低级数据语义bug 哭死了
(其实是我根本没想好
就增加一个「相对x轴」功能,默认关闭
嗯……刚才想了几个特性
首先是 Desmos 的跟踪函数曲线,这个比较简单, click 的时候 mouse 若有
目前函数列表是没做的情况,做了估计要支持 enabled, color, expr 的编辑(是)
然后是缩放动画(补间函数可参考这个) 以及手动缩放钮,应该安排下, touchscreen 的 press 也没 handle
整个 navi panel 也不能最小化看整体图像,得做一下
Nivalis 的 variable slider 是很棒的设计, 有必要加一个
另外
隐式绘图 (画圆什么的) 可能优化的情况比较多,我也不了解代数符号系统那边什么情况,和 yuuta 一样,暂时只支持 x 变量
只能说 #math #cplusplus #js #web #tools 大佬 始终是大佬 ,而且 JVM 端大佬也不少
#Linux 系也有 KDE 的 KAlgebra 和普通工程计算器 KCalc
https://c3d.libretexts.org/CalcPlot3D/index.html 这还有个 3D 的
https://wiki.archlinux.org/index.php/List_of_applications/Science#Computer_algebra_system #listing
KDE 还指什么 Kernel Dense Estim. 的图 #lib #Python https://seaborn.pydata.org/index.html
草
with(window) { width, height } 和 x,y 的对应关系(就增加一个「相对x轴」功能,默认关闭
嗯……刚才想了几个特性
首先是 Desmos 的跟踪函数曲线,这个比较简单, click 的时候 mouse 若有
y_func(x)==y ,把它高亮下,直到 mouseup 时显示 y_func(x) 就可以了目前函数列表是没做的情况,做了估计要支持 enabled, color, expr 的编辑(是)
然后是缩放动画(补间函数可参考这个) 以及手动缩放钮,应该安排下, touchscreen 的 press 也没 handle
整个 navi panel 也不能最小化看整体图像,得做一下
Nivalis 的 variable slider 是很棒的设计, 有必要加一个
另外
dim2Cfg 这个配置对象,也应该给做个 modal dialog 的配置编辑器隐式绘图 (画圆什么的) 可能优化的情况比较多,我也不了解代数符号系统那边什么情况,和 yuuta 一样,暂时只支持 x 变量
只能说 #math #cplusplus #js #web #tools 大佬 始终是大佬 ,而且 JVM 端大佬也不少
#Linux 系也有 KDE 的 KAlgebra 和普通工程计算器 KCalc
https://c3d.libretexts.org/CalcPlot3D/index.html 这还有个 3D 的
https://wiki.archlinux.org/index.php/List_of_applications/Science#Computer_algebra_system #listing
KDE 还指什么 Kernel Dense Estim. 的图 #lib #Python https://seaborn.pydata.org/index.html
草
KDE.org
KAlgebra Mobile
Graph Calculator
#Math #dev https://www.geogebra.org/m/h9vhqujn 啊不得不承认虽然许多数学应用不开源(想必开源也无人维护,唉),但 本地化 #i18n 和无障碍访问性 做得是无可挑剔。 果然 #web HTML 虽然有些缺陷,却是最为成功的软件和文档平台
https://calcplot3dblog.wordpress.com/
[Mathway | About Us](https://www.mathway.com/about)
[Box and Whisker Plot Calculator](https://www.easycalculation.com/statistics/box-plot-grapher.php)
[CalcPlot3D](https://c3d.libretexts.org/CalcPlot3D/index.html) 不过有些人的 UI/UX 设计的确很难看...
[Mathway | About Us](https://www.mathway.com/about)
[Box and Whisker Plot Calculator](https://www.easycalculation.com/statistics/box-plot-grapher.php)
[CalcPlot3D](https://c3d.libretexts.org/CalcPlot3D/index.html) 不过有些人的 UI/UX 设计的确很难看...
#linux #Learn #Java #math #build #bash fix for Desoms (Kt, Java:Algebra)
1. Java Desmos 求解后端
2. Kotlin Desmos 简单重写
手动复制粘贴 https://paste.ubuntu.com/p/Q4DnzrZ37Z/ 或(源地址)到 Window.kt ,因为 国内 #China 许多地方不仅 #GitHub raw 连 pastebin 都连不上 🌚🌝 #freedom
然后
感觉 maven 依赖这么多插件 archetype, install, exec 完成日常任务,有点不平衡吧……
此外还看到了生成本地文件依赖的 Maven #doc https://stackoverflow.com/questions/6704813/maven-generating-pom-file
#parser https://github.com/mariuszgromada/MathParser.org-mXparser 我草这玩意又不支持逆向计算,有啥好吹的
还夸张地弄了那么多图,太那啥了
http://scalarmath.org/wp-content/uploads/2019/01/scalar-promo-screens.png 弄个心型函数还要用户自己推导正向公式, 就凭这? 一个 evaluator 和 Python, JS eval 之类的东西有什么区别
不愧是 Java EE 搞出来的混乱怪物,就喜欢一些毫无意义的老套封装
1. Java Desmos 求解后端
git clone https://github.com/galbar07/Desmos.git DesmosJ &&cd DesmosJ因为 mvng 没有写完不能用脚本生成 POM 修复了 emm ,当然有 IDE 就能直接用(不过这年头 只会用 IDE 建项目 对细节一无所知的人真的有创造力吗 😑 )
sed 's/import org.junit.jupiter.api.BeforeEach;//;s/@BeforeEach//;' -i tests/Functions_GUITest.java
javac -cp `ls JAR/gson-*.jar`:`ls ~/.m2/repository/junit/junit/4.0/junit-*.jar` ex1/*.java tests/Functions_GUITest.java
java -cp . ex1.StdDraw
#java -cp ".:`ls JAR -m|sed 's/, /:/g'`" tests.Functions_GUITest
java -cp `find JAR -type f -printf '%p:'`. tests.Functions_GUITest
2. Kotlin Desmos 简单重写
手动复制粘贴 https://paste.ubuntu.com/p/Q4DnzrZ37Z/ 或(源地址)到 Window.kt ,因为 国内 #China 许多地方不仅 #GitHub raw 连 pastebin 都连不上 🌚🌝 #freedom
mvn archetype:help
#mkdir DesmosKt &&cd DesmosKt
#mvn archetype:generate -DgroupId=com.example - DartifactId=desmos -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
mvn archetype:generate -DgroupId=me.nanjingchj -DartifactId=DesmosKt -DarchetypeArtifactId=kotlin-archetype-jvm -DarchetypeGroupId=org.jetbrains.kotlin -DarchetypeVersion=1.4.21 -DinteractiveMode=false
cd DesmosKt
mkdir -p src/main/kotlin/me/nanjingchj/desmos/
cat>`find -type d -name desmos`/Window.kt
mvnDeps=`python -c 'from lxml import etree,builder; s="org.mariuszgromada.math:MathParser.org-mXparser:4.4.2";E=builder.E;e=E("dependency", *(E(k, v) for v,k in zip(s.split(":"), "groupId artifactId version".split(" ")))); print(etree.tostring(e).decode())'`
sed "38i\ ${mvnDeps}" -i pom.xml
echo 'object Main{@JvmStatic fun main(vararg a:String){System.setProperty("sun.java2d.opengl","True"); me.nanjingchj.desmos.Window()} }'>`find -type d -name kotlin|head -n1`/Main.kt 然后
mvn package exec:java -Dexec.mainClass=Main 即可感觉 maven 依赖这么多插件 archetype, install, exec 完成日常任务,有点不平衡吧……
此外还看到了生成本地文件依赖的 Maven #doc https://stackoverflow.com/questions/6704813/maven-generating-pom-file
mvn install:install-file #parser https://github.com/mariuszgromada/MathParser.org-mXparser 我草这玩意又不支持逆向计算,有啥好吹的
还夸张地弄了那么多图,太那啥了
http://scalarmath.org/wp-content/uploads/2019/01/scalar-promo-screens.png 弄个心型函数还要用户自己推导正向公式, 就凭这? 一个 evaluator 和 Python, JS eval 之类的东西有什么区别
不愧是 Java EE 搞出来的混乱怪物,就喜欢一些毫无意义的老套封装
GitHub
GitHub - galbar07/Desmos: Desmos
Desmos. Contribute to galbar07/Desmos development by creating an account on GitHub.
duangsuse::Echo
计算机绘图,我该去哪里问?
《中国人什么时候能站起来》 迫真 🌝🇨🇳
不就画个图嘛,有什么不能在国内问的,居然都这么懂
Python 入门还都画 Turtle 呢,小学信息技术还用 Scratch 呢,草
不就画个图嘛,有什么不能在国内问的,居然都这么懂
Python 入门还都画 Turtle 呢,小学信息技术还用 Scratch 呢,草
#learn #java #service https://medium.com/@cbuelvasc/test-automation-in-kotlin-with-selenium-testng-and-page-object-model-e2252dbc492a + JUnit
#Kotlin https://kotlinlang.org/docs/reference/using-maven.html 🌝 从 Gradle 到 Maven,我是不是在开倒车(反正只是 JVM 又不是 Android
#Kotlin https://kotlinlang.org/docs/reference/using-maven.html 🌝 从 Gradle 到 Maven,我是不是在开倒车(反正只是 JVM 又不是 Android
Medium
Test Automation in Kotlin with Selenium, TestNG and Page Object Model
Nowadays, automation testing has proved to be an important component within the cycle of software development and even more for the agile…
#TeX #Python #math https://github.com/dwalone/Latex2Python/blob/master/latex2python.py#L75 🌚 把
作者也是挺机灵,
可是他重复了几遍 算 (i, i1) 再拿 i1 去算 i2 的操作,杂乱的 pos1, pos2 命名都没有注意到这是 zipWithNext 式处理,实现了个
\frac{a}{b} 换成 (a/b) 作者也是挺机灵,
findCloseParen(str)->int 是很方便的半解析做法可是他重复了几遍 算 (i, i1) 再拿 i1 去算 i2 的操作,杂乱的 pos1, pos2 命名都没有注意到这是 zipWithNext 式处理,实现了个
findFCall(s)->str[] 函数……GitHub
Latex2Python/latex2python.py at master · dwalone/Latex2Python
Desmos to Python / SymboLab to Python / LaTeX to Python syntax converter for mathematical expressions - dwalone/Latex2Python
列一些有趣的社区项目 #math #listing #Java
https://www.desmos.com/calculator/i6fijibmbz
#GUI 系列:
https://github.com/darsam44/Mini-desmos (吐嘈: 真的不迷你)
https://github.com/DanielZhangD/Javmos
https://github.com/LitterallyTheCoolestGuy69/Desmos-But-Scuffed
#Python 转换/等式代码生成脚本系列:
https://github.com/MrNewdary/svg2desmos/blob/main/svg2desmos.py
https://github.com/anematode/parametrizer/blob/master/undeletable.py
https://github.com/allesspassig/despy/blob/master/despy.py
https://github.com/emily-yu/image-to-desmos OpenCV #cv
#music https://github.com/AlexApps99/MIDI2Desmos 听 MIDI 函数图系列...
多项式课系列:
https://github.com/galbar07/Desmos
https://github.com/yonatan555/Desmos-Polynom
https://github.com/JiangTianXiang/Grade-12-Calculus-Graphing-Calculator
https://github.com/WhoIsKatie/Javmos
https://github.com/TimChoy/javmos
https://github.com/DvirTomer/Desmos-Polynom
乱入:
https://github.com/andrewpareles/Calculator/blob/master/main.ml
https://github.com/Tuttivers/ExponentialSeekbar-sample/blob/master/NearMeSeekBar.kt#L75 #Kotlin #Android
https://mukunthag.github.io/SHM/ 振荡器什么的...
https://github.com/Rob--/root-approximations/blob/master/evaluatex.js#L190 #JavaScript #lib #parsing 几百行的符号代数系统...
可移植性/项目管理极差的 GUI:
https://github.com/Pi-Man/Graphing-Calculator/tree/master/Graphing-Calculator
https://github.com/RohanK22/cppmathtool
http://well-made-territory.surge.sh/Desmos.html
https://github.com/softchickenidiot/3D-Grapher/tree/master/3D Grapher
https://www.desmos.com/calculator/i6fijibmbz
#GUI 系列:
https://github.com/darsam44/Mini-desmos (吐嘈: 真的不迷你)
https://github.com/DanielZhangD/Javmos
https://github.com/LitterallyTheCoolestGuy69/Desmos-But-Scuffed
#Python 转换/等式代码生成脚本系列:
https://github.com/MrNewdary/svg2desmos/blob/main/svg2desmos.py
https://github.com/anematode/parametrizer/blob/master/undeletable.py
https://github.com/allesspassig/despy/blob/master/despy.py
https://github.com/emily-yu/image-to-desmos OpenCV #cv
#music https://github.com/AlexApps99/MIDI2Desmos 听 MIDI 函数图系列...
多项式课系列:
https://github.com/galbar07/Desmos
https://github.com/yonatan555/Desmos-Polynom
https://github.com/JiangTianXiang/Grade-12-Calculus-Graphing-Calculator
https://github.com/WhoIsKatie/Javmos
https://github.com/TimChoy/javmos
https://github.com/DvirTomer/Desmos-Polynom
乱入:
https://github.com/andrewpareles/Calculator/blob/master/main.ml
https://github.com/Tuttivers/ExponentialSeekbar-sample/blob/master/NearMeSeekBar.kt#L75 #Kotlin #Android
https://mukunthag.github.io/SHM/ 振荡器什么的...
https://github.com/Rob--/root-approximations/blob/master/evaluatex.js#L190 #JavaScript #lib #parsing 几百行的符号代数系统...
可移植性/项目管理极差的 GUI:
https://github.com/Pi-Man/Graphing-Calculator/tree/master/Graphing-Calculator
https://github.com/RohanK22/cppmathtool
http://well-made-territory.surge.sh/Desmos.html
https://github.com/softchickenidiot/3D-Grapher/tree/master/3D Grapher
Desmos
Final Project