mathematica中画图画不出来 5C

-1

4个回答

0
qq_32455103 我发到下面了

Plot3D[(2*10^-7)/
Abs(Sqrt[3] x + y)/
2
/(2 Sqrt[x^2 + y^2]) + (4 - x - Sqrt[3] y)/(
2 Sqrt[(1 - x)^2 + (Sqrt[3] - y)^2])) +
10^-7/y ((2 - x)/Sqrt[(2 - x)^2 + y^2] + x/Sqrt[x^2 + y^2]) + (
2*10^-7)/Sqrt
3 x^2 + y^2 - 12 x + 12 + 2 Sqrt[3] xy -
4 Sqrt[3] y
/(
2 Sqrt[(1 - x)^2 + (Sqrt[3] - y)^2]) + (2 - x + Sqrt[3] y)/(
2 Sqrt[(1 - x)^2 + y^2])), {x, 0, 2}, {y, 0, Sqrt[3]}]

0
qq_32455103 回复Boover: 我把这三项拆开来分别作图，第三个还是画不出来，语句应该是没有错误了

qq_32455103 好滴，我再检查一下

Boover 你发的这个运行起来会出现语法错误，有几处括号不对应。

3 x^2 + y^2 - 12 x + 12 + 2 Sqrt[3] xy -
4 Sqrt[3] y
/(
2 Sqrt[(1 - x)^2 + (Sqrt[3] - y)^2]) + (2 - x + Sqrt[3] y)/(
2 Sqrt[(1 - x)^2 + y^2])), {x, 0, 2}, {y, 0, Sqrt[3]},
RegionFunction ->
Function[{x, y, z},
y >= 0 && y - Sqrt[3] x <= 0 && y + Sqrt3 <= 0]]

0

0

DX 贴图画不出来
void GenerateData()rnrn rap3d.GetDevice()->CreateVertexBuffer( 10*sizeof(LVertex), rn D3DUSAGE_WRITEONLY, VertexFVF, D3DPOOL_DEFAULT, &pBigSquareVB, NULL );rn LVertex * v;rn pBigSquareVB->Lock( 0, 0, (void**)(BYTE**)&v, 0 );rnrn v[0].x = 0.0f; v[0].y = 0.0; v[0].z = 0.0f;rn v[0].diffuse = 0xffff0000;rn v[0].tu = 0.0f; v[0].tv = 0.5f;rnrn v[1].x = 0.0f; v[1].y = 5.0f; v[1].z = 0.0f;rn v[1].diffuse = 0xff0000ff;rn v[1].tu = 0.5f; v[1].tv = 0.5f;rnrn v[2].x = 5.0f; v[2].y = 5.0f; v[2].z = 0.0f;rn v[2].diffuse = 0xffffffff;rn v[2].tu = 0.5f; v[2].tv = 0.0f;rnrn v[3].x = 5.0f; v[3].y = 0.0f; v[3].z = 0.0f;rn v[3].diffuse = 0xff000fff;rn v[3].tu = 0.0f; v[3].tv = 0.0f;rnrn /*v[4].x = 10.0f; v[4].y =10.0f; v[4].z = 0.0f;rn v[4].diffuse = 0xffffff00;rn v[4].specular = 0xffff0000;rn v[4].tu = 0.0f; v[4].tv = 0.0f;rnrn v[5].x = 10.0f; v[5].y = 15.0f; v[5].z = 0.0f;rn v[5].diffuse = 0xffffff00;rn v[5].specular = 0xffff0000;rn v[5].tu = 0.0f; v[5].tv = 0.0f;rnrn v[6].x = 5.0f; v[6].y = 15.0f; v[6].z = 0.0f;rn v[6].diffuse = 0xffffff00;rn v[6].specular = 0xffff0000;rn v[6].tu = 0.0f; v[6].tv = 0.0f;rnrn v[7].x = 10.0f; v[7].y = 5.0f; v[7].z = 0.0f;rn v[7].diffuse = 0xffffff00;rn v[7].specular = 0xffff0000;rn v[7].tu = 0.0f; v[7].tv = 0.0f;rnrn v[8].x = 10.0f; v[8].y = 10.0f; v[8].z = 0.0f;rn v[8].diffuse = 0xffffff00;rn v[8].specular = 0xffff0000;rn v[8].tu = 0.0f; v[8].tv = 0.0f;rnrn v[9].x = 0.0f; v[9].y = 0.0f; v[9].z = 0.0f;rn v[9].diffuse = 0xffffff00;rn v[9].specular = 0xffff0000;rn v[9].tu = 0.0f; v[9].tv = 0.0f;rn */rn pBigSquareVB->Unlock();rnrnbool MyTestRender()rnrn if (TexMan.GetTex("girl"))rn rn rap3d.GetDevice()->SetTexture(0,TexMan.GetTex("girl"));rn rn rap3d.GetDevice()->SetTextureStageState( 0, D3DTSS_COLOROP, D3DTOP_MODULATE );rn rap3d.GetDevice()->SetTextureStageState( 0, D3DTSS_COLORARG1, D3DTA_TEXTURE );rn rap3d.GetDevice()->SetTextureStageState( 0, D3DTSS_COLORARG2, D3DTA_DIFFUSE );rn rap3d.GetDevice()->SetTextureStageState( 0, D3DTSS_ALPHAOP, D3DTOP_DISABLE );rn rap3d.GetDevice()->SetFVF(VertexFVF);rn rap3d.GetDevice()->SetStreamSource(0, pBigSquareVB, 0, sizeof(LVertex));rnrnrn rap3d.GetDevice()->DrawPrimitive( D3DPT_TRIANGLEFAN , 0 ,2);rnrn return true;rn

Description 甜甜从小就喜欢画图画，最近他买了一支智能画笔，由于刚刚接触，所以甜甜只会用它来画直线，于是他就在平面直角坐标系中画出如下的图形：   甜甜的好朋友蜜蜜发现上面的图还是有点规则的，于是他问甜甜：在你画的图中，我给你两个点，请你算一算连接两点的折线长度（即沿折线走的路线长度）吧。   Input 第一个数是正整数N（≤100）。代表数据的组数。 每组数据由四个非...

GDI画字符串 画不出来
[code=csharp]private void button1_Click(object sender, EventArgs e)rn rn Bitmap bm = new Bitmap(200, 200);rn Graphics g = Graphics.FromImage(bm);rn g.Clear(Color.Black);rn g.DrawString("asdwqeqr", new Font("宋体", 14), new SolidBrush(Color.Blue), 20, 10);rn [/code] rn为什么那个字符串画不出来啊

【mathematica画三维空间坐标系箭头】

Bitmap bm=new Bitmap(200,200); rn Pen blackPen = new Pen(Color.Black, 6);rn Graphics g=Graphics.FromImage(bm);rn g.DrawEllipse(blackPen, 1,1,100,100);rn

canvas.drawPath无效，画不出来
canvas.drawPath无效 需要关闭手机的硬件加速 1.在自定义view中 加入 setLayerType(View.LAYER_TYPE_SOFTWARE, null); 2.在清单文件中 ，activity 或者application 中添加 android:hardwareAccelerated="false"

2D图形画不出来
[code=Java]rnimport java.awt.*;rnimport java.awt.geom.Rectangle2D;rnimport javax.swing.*;rnrnpublic class DrawTestrnrn public static void main(String[] args)rn rn DrawFrame frame=new DrawFrame();rn frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);rn frame.setVisible(true);rn rnrnrnclass DrawFrame extends JFramernrn public DrawFrame()rn rn setSize(Width,Height);rn setTitle("DrawTest");rn setLocation(500, 300);rn rn DrawPanel panel=new DrawPanel();rn add(panel);rn rn rn public static final int Width=400;rn public static final int Height=500;rnrnrnrnclass DrawPanel extends JPanelrnrn public void paintComponet(Graphics g)rn rnrn super.paintComponent(g);rn Graphics2D g2=(Graphics2D)g;rn rn //画一个方块rn Rectangle2D rect=new Rectangle2D.Double(100,100,200,150);rn g2.draw(rect);rn rnrn[/code]rn[color=#FF0000]rn为什么我的rect画不出来？？？[/color]
Canvas->CopyRect 画不出来

TEXT中的图画

mathematica
mathematica
Mathematica
Mathematica_基础知识
DirectX9为什么画不出来？急！

CWnd* hwnd = GetDlgItem(IDC_PIC);rnHDC hdc = hwnd->GetDC()->m_hDC;rnHDC hDc = CreateCompatibleDC(hdc);rnTextOut(hDc, 0, 0, "hello", 5);rnIDC_PIC是一个标签控件，上面语句是加在OnPaint中的！rn

[code=c]rnvoid AddRobotDialog::OnPaint()rnrn CPaintDC dc(this); // drn UpdateWindow();rn CClientDC *pDC = new CClientDC(GetDlgItem(IDC_HEAD_PIC));rn CRect rect;rn GetDlgItem(IDC_HEAD_PIC)->GetWindowRect(&rect);rn Graphics graphics(pDC->m_hDC);rn wchar_t wcstring[256];rn MultiByteToWideChar(CP_ACP, 0, m_headPath, -1, wcstring, 256);rn Image image(wcstring);rn graphics.DrawImage(&image, 0, 0, image.GetWidth(), image.GetHeight());rnrn delete pDC;rn rnrnrn[/code]

loacat提示： 07-03 01:06:58.175: W/OpenGLRenderer(30011): Bitmap too large to be uploaded into a texture (440x5261, max=4096x4096) 07-03 01:06:58.175: W/OpenGLRenderer(30011): Bitmap too large to be up...

using System;rnusing System.Drawing;rnusing System.Collections;rnusing System.ComponentModel;rnusing System.Windows.Forms;rnusing System.Data;rnusing System.Drawing.Drawing2D;rnrnnamespace WindowsApplication1rnrn /// rn /// Form1 的摘要说明。rn /// rn public class Form1 : System.Windows.Forms.Formrn rn /// rn /// 必需的设计器变量。rn /// rn private System.ComponentModel.Container components = null;rnrn public Form1()rn rn //rn // Windows 窗体设计器支持所必需的rn //rn InitializeComponent();rn //rn // TODO: 在 InitializeComponent 调用后添加任何构造函数代码rn //rn rnrn /// rn /// 清理所有正在使用的资源。rn /// rn protected override void Dispose( bool disposing )rn rn if( disposing )rn rn if (components != null) rn rn components.Dispose();rn rn rn base.Dispose( disposing );rn rnrn #region Windows 窗体设计器生成的代码rn /// rn /// 设计器支持所需的方法 - 不要使用代码编辑器修改rn /// 此方法的内容。rn /// rn private void InitializeComponent()rn rn // rn // Form1rn // rn this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);rn this.ClientSize = new System.Drawing.Size(568, 421);rn this.Name = "Form1";rnrn rn #endregionrnrn /// rn /// 应用程序的主入口点。rn /// rn [STAThread]rn static void Main() rn rn Application.Run(new Form1());rn Form1 f = new Form1();rn f.ps();rn rnrn private void ps()rn rn Graphics g = this.CreateGraphics();rn g.FillRectangle(Brushes.White,ClientRectangle);rn g.DrawLine(Pens.Blue,new Point(0,0),new Point(500,100));rn g.Dispose();rn rnrnrn rnrn
polygon!!怎么画不出来？？急
Private Sub cmdDraw_Click()rn Dim sngPoint(1 To 3) As POINTAPIrn Dim lngReturn As Longrn Dim lngN As Longrnrn sngPoint(1).X = 50rn sngPoint(1).Y = 50rn rn sngPoint(2).X = 100rn sngPoint(2).Y = 100rn rn sngPoint(3).X = 400rn sngPoint(3).Y = 400rn rn lngReturn = SetPolyFillMode(picPowerSystem.hdc, 1)rn lngReturn = Polygon(picPowerSystem.hdc, sngPoint(1), 3)rn'picPowerSystem是picture控件，背景为黑色，前景为红 scalemodel为pixelrn rnEnd Subrnrn可是在pic上看不到有图形，为什么？
C# 画的圆显示不出来

DirextX 为啥画不出来三角形？