当前位置: 首页 > ai >正文

在Mathematica中可视化Root和Log函数

对于取n次根式,使用其实部

当做高度函数,可以实现可视化:

ViewRootSurface[n_Integer, resolution_Integer] := ParametricPlot3D[{r*Cos[theta], r*Sin[theta], r^(1/n)*Cos[theta/n]},{r, 0, 2}, {theta, 0, 2*n*Pi},PlotPoints -> {resolution, resolution*n},Boxed -> False, Axes -> False,AspectRatio -> 1, ViewPoint -> {-3, -3, 0}]ViewRootSurface[3, 20]

同样地,对于Log函数,使用相应的虚部作为高度函数,可可视化该函数:

ViewLogSurface[n_Integer, resolution_Integer] := ParametricPlot3D[{r*Cos[theta], r*Sin[theta], theta},{r, 0, 2}, {theta, 0, 2*Pi*n},PlotPoints -> {resolution, resolution*n},Boxed -> False, Axes -> False, AspectRatio -> 1/2, ViewPoint -> {-3, -2, 3}]ViewLogSurface[3, 30]

http://www.xdnf.cn/news/10330.html

相关文章:

  • 实现RabbitMQ多节点集群搭建
  • 前端框架进化史
  • Git仓库大文件清理指南
  • LangChain-结合GLM+SQL+函数调用实现数据库查询(二)
  • Spring如何实现组件扫描与@Component注解原理
  • vscode 连接远程服务器
  • Json详解
  • Spring Boot,注解,@RestController
  • <5>, Qt系统相关
  • 哈 希 表
  • 快速掌握 GO 之 RabbitMQ 结合 gin+gorm 案例
  • 设计模式——策略设计模式(行为型)
  • GitLab CI、GitHub Actions和Jenkins进行比较
  • DAY 18 推断聚类后簇的类型
  • 核心机制:TCP 断开连接(四次挥手)
  • learn react course
  • TDengine 集群容错与灾备
  • 多自主水下航行器(AUV)协同围捕策略
  • 汽车安全:功能安全FuSa、预期功能安全SOTIF与网络安全Cybersecurity 解析
  • 【前端】成长路线
  • C#语音录制:使用NAudio库实现语音录制功能详解
  • MyBatis、MyBatis-Plus与MyBatis-Flex的区别
  • .net Avalonia应用程序生命周期
  • 经典面试题:一文了解常见的缓存问题
  • 视觉分析明火检测助力山东化工厂火情防控
  • 【前端】Vue中使用CKeditor作为富文本编辑器
  • Python应用for循环临时变量作用域
  • MATLAB中properties函数用法
  • 408《数据结构》——第二章:线性表
  • 【harbor】--配置https