Skip to main content

Questions tagged [function-construction]

For questions on writing functions (pure or using Set/SetDelayed) for any purpose, including the features that may be incorporated in those functions, such as options, patterns and conditions.

1 vote
1 answer
104 views

I want to define a multiplet field with two components (two modes) and write an action for it in Mathematica
BISWAJIT SANA's user avatar
1 vote
1 answer
52 views

I would like to plot the $|x\rangle$-representation wave functions of the first few energy eigenstates of a harmonic oscillator. The formula is $$ \varphi_n(x)=\left[\frac{1}{2^n n!}\left(\frac{\hbar}{...
MrBetadine's user avatar
0 votes
0 answers
42 views

I want to define an abstract multilinear function mlfunc in arbitrary arguments with the standard algebraic and analytic properties. Implementing algebraic ...
Po1ynomial's user avatar
1 vote
1 answer
83 views

How can I check whether two edges (tagged "c" and "d") have consistent orientation (either always the same ...
internet's user avatar
  • 1,457
3 votes
2 answers
283 views

I have a list of functions like this: ...
internet's user avatar
  • 1,457
4 votes
1 answer
136 views

Is there any efficient way to find cycle matroid of a graph? A cycle matroid is basically all sets of edges in a graph that does not form a cycle. The code below works pretty well for small graphs, ...
internet's user avatar
  • 1,457
12 votes
4 answers
576 views

We can define anonymous functions like this: #^2+#+1 & or like this x |-> x^2+x+1 When we want to define a recursive ...
jjagmath's user avatar
  • 533
2 votes
5 answers
286 views

Let's say that I have a function f which is passed a user-defined function g which is originally passed as an option to some ...
SubSevn's user avatar
  • 131
0 votes
2 answers
114 views

This function has two separate branches (not connected together): func = ConditionalExpression[1/(1 - 2 x)^2, 0 < x < 1]; Given a range of ...
internet's user avatar
  • 1,457
3 votes
1 answer
87 views

Given a list of directed edge-tagged graphs gList like this: ...
internet's user avatar
  • 1,457
5 votes
4 answers
345 views

Given a list, I want to find all possible ways to split it into sublists such that: Each sublist has length greater than 1. Any two consecutive sublists share exactly one common element. All elements ...
internet's user avatar
  • 1,457
0 votes
0 answers
74 views

Before describing the problem, a short background on how it pops up. I am solving a PDE problem on the [0,1]x[0,1] domain. To this end, I want to find the decomposition of some derivatives of the ...
Paweł Korzeb's user avatar
4 votes
2 answers
186 views

Assume that I have a list of simple cycle EdgeTaggedGraph objects called fundamentalCycles. I would like to construct a graph <...
internet's user avatar
  • 1,457
7 votes
5 answers
600 views

This is my code: ...
G Taylor's user avatar
  • 105
4 votes
3 answers
184 views

I have a list of binary functions such as {Plus, Times, Subtract} and a list of symbols like {a, b, c, d}. I want to construct ...
expression's user avatar
  • 5,782

15 30 50 per page
1
2 3 4 5
170